You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I'm having a weird error when compiling a simple CS shader to GLSL.
Below is the HLSL shader i'm using and what i found to be weird on the generated GLSL code.
Hello there,
I'm having a weird error when compiling a simple CS shader to GLSL.
Below is the HLSL shader i'm using and what i found to be weird on the generated GLSL code.
It reads PositionBuffer as:
and writes as:
Another thing is , scale writes looks wrong. it writes .xxxw
This is the full generated GLSL code:
On a final note, i was able to get proper GLSL code by wrapping the pos.www with a abs(). so:
float4 scale = float4( abs(pos.www), 1.0f );
That worked
The text was updated successfully, but these errors were encountered: