Skip to main content
Participant
Jul 19, 2021 10:03 AM UTC
Question

How to calculate normal in view space?

I want to use matcap in shader, it needs view space normal, but in documents I can't find any matrix from world space yo view space.

So, how to calcute it to use matcap?

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

SayeedHuAuthor
Participant
Jul 19, 2021 11:38 AM UTC

found it. 

uniform_camera_view_matrix

Translate