Skip to content

Commit 8125ddd

Browse files
authored
Merge pull request #206 from Devsh-Graphics-Programming/ef64_fix
Fixed emulated float compilation error
2 parents 24e5f12 + 3899c45 commit 8125ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

62_CAD/shaders/main_pipeline/vertex_shader.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ PSInput vtxMain(uint vertexID : SV_VertexID)
453453
// to better understand variables at play, and the circle space, see documentation of `miterSDF` in fragment shader
454454
// length of vector from circle center to intersection position (normalized so that circle radius = line thickness = 1.0)
455455
float vLen = length(v);
456-
float2 intersectionDirection_Screenspace = normalize(transformVectorScreenSpace(clipProjectionData.projectionToNDC, globals.resolution, v));
456+
float2 intersectionDirection_Screenspace = normalize(transformVectorScreenSpace(clipProjectionData.projectionToNDC, globals.resolution, _static_cast<pfloat64_t2>(v)));
457457
const float2 v_Screenspace = intersectionDirection_Screenspace * vLen;
458458

459459
// Find other miter vertices

0 commit comments

Comments
 (0)