Smaller matrices in uniforms, texcoord transform to rotate voxel faces
This commit is contained in:
@@ -18,7 +18,7 @@ struct Varyings {
|
||||
Varyings vertexMain(Vertex vert) {
|
||||
Varyings out;
|
||||
|
||||
let directionVS = mul(_Global.matrixWStoVS, float4(vert.directionWS, 0.0)).xyz;
|
||||
let directionVS = mul(_Global.matrixWStoVS, float4(vert.directionWS, 0.0));
|
||||
let directionCS = mul(_Global.matrixVStoCS, float4(directionVS, 0.0));
|
||||
|
||||
out.positionCS = float4(directionCS.xy, 0.0, directionCS.w);
|
||||
|
||||
Reference in New Issue
Block a user