Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a question about raydir in skybox shader #8

Open
VincentGogo opened this issue Aug 6, 2020 · 0 comments
Open

a question about raydir in skybox shader #8

VincentGogo opened this issue Aug 6, 2020 · 0 comments

Comments

@VincentGogo
Copy link

float3 rayStart = _CameraPos;
float3 rayDir = normalize(mul((float3x3)unity_ObjectToWorld, i.vertex));

I think rayDir should be below code, is that right?
float3 rayDir = normalize(mul((float3x3)unity_ObjectToWorld, i.vertex) - rayStart )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant