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

CameraSampling for Volume and Transmission is upside down! #746

Open
MarcusGT076 opened this issue Jul 1, 2024 · 1 comment
Open

CameraSampling for Volume and Transmission is upside down! #746

MarcusGT076 opened this issue Jul 1, 2024 · 1 comment
Assignees
Labels

Comments

@MarcusGT076
Copy link

When i import a gltf with volume and transmission in unity editor the plugin is working as planned.
The Reflection inside the object is correct.
But when i export the scene to webgl and build it the reflection inside the object is upside down.
Its this function :

void SampleSceneColor_float(float2 uv, float lod, out float3 color)

Can you assist in this case ?
I tried alreade to flip the uv coordinates in this function with uv.y = 1.0 - uv.y and its working.
But i dont know why this behaves different from the editor and the webgl build.

Can you assist here ?
Cheers!

@hybridherbst
Copy link
Collaborator

Thanks for the report – @pfcDorn would be great if you can take a look! Likely there needs to be a flip depending on if the RT is flipped (there should be a shader constant for that)

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

No branches or pull requests

3 participants