mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
initial chunk render caching
This commit is contained in:
@ -23,7 +23,7 @@ vertex FragmentInput vertexMain(
|
||||
FragmentInput out;
|
||||
out.position = u.projView * world;
|
||||
out.world = world.xyz;
|
||||
out.color = half4(i[instanceID].color);
|
||||
out.color = vtx[vertexID].color * i[instanceID].color;
|
||||
out.normal = (i[instanceID].normalModel * float4(vtx[vertexID].normal, 0)).xyz;
|
||||
out.texCoord = vtx[vertexID].texCoord;
|
||||
return out;
|
||||
|
Reference in New Issue
Block a user