-
i just want do step-by-step with this tutorial: https://roystan.net/articles/grass-shader.html float4 vertexOutput(float4 pos0, float3 posX)
};
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The
so maybe try:
because you multiply by |
Beta Was this translation helpful? Give feedback.
The
ShadingPosition
is usually already in screen space if you have a regular vertex shader.float4 posss0=streams.ShadingPosition;
so maybe try:
float4 posss0=streams.Position;
because you multiply by
WorldViewPostion
in thevertexOutput
method.