Skip to content

a question about raydir in skybox shader #8

@VincentGogo

Description

@VincentGogo
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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions