4
Як насправді шейдер HLSL впливає на вихід рендерінгу?
Я розумію синтаксис HLSL, наприклад, зробимо вигляд, що я маю це як свій HLSL: struct VOut { float4 position : SV_POSITION; float4 color : COLOR; }; VOut VShader(float4 position : POSITION, float4 color : COLOR) { VOut output; output.position = position; output.position.xy *= 0.7f; // "shrink" the vertex on the …