@@ -140,18 +140,8 @@ SurfaceTextureData evaluateSurfaceTextureData(MeshInfo mesh, uint primitiveIndex
140140 unpackColorRGBA8(vertex2 .packedColor ),
141141 barycentrics
142142 ),
143- interpolateTriangleFloat2(
144- unpackHalf2(vertex0 .texcoord0 ),
145- unpackHalf2(vertex1 .texcoord0 ),
146- unpackHalf2(vertex2 .texcoord0 ),
147- barycentrics
148- ),
149- interpolateTriangleFloat2(
150- unpackHalf2(vertex0 .texcoord1 ),
151- unpackHalf2(vertex1 .texcoord1 ),
152- unpackHalf2(vertex2 .texcoord1 ),
153- barycentrics
154- )
143+ interpolateTriangleFloat2(vertex0 .texcoord0 , vertex1 .texcoord0 , vertex2 .texcoord0 , barycentrics),
144+ interpolateTriangleFloat2(vertex0 .texcoord1 , vertex1 .texcoord1 , vertex2 .texcoord1 , barycentrics)
155145 );
156146}
157147
@@ -214,18 +204,8 @@ SurfaceShadingData reconstructSurfaceShading(
214204 unpackColorRGBA8(vertex2 .packedColor ),
215205 barycentrics
216206 ),
217- interpolateTriangleFloat2(
218- unpackHalf2(vertex0 .texcoord0 ),
219- unpackHalf2(vertex1 .texcoord0 ),
220- unpackHalf2(vertex2 .texcoord0 ),
221- barycentrics
222- ),
223- interpolateTriangleFloat2(
224- unpackHalf2(vertex0 .texcoord1 ),
225- unpackHalf2(vertex1 .texcoord1 ),
226- unpackHalf2(vertex2 .texcoord1 ),
227- barycentrics
228- )
207+ interpolateTriangleFloat2(vertex0 .texcoord0 , vertex1 .texcoord0 , vertex2 .texcoord0 , barycentrics),
208+ interpolateTriangleFloat2(vertex0 .texcoord1 , vertex1 .texcoord1 , vertex2 .texcoord1 , barycentrics)
229209 );
230210
231211 return hit;
0 commit comments