D | nightvision.rs | 21 const static float3 gMonoMult = {0.299f, 0.587f, 0.114f}; variable 22 const static float3 gNightVisionMult = {0.5f, 1.f, 0.5f}; variable 29 float3 rgb = {v_in->y * 0.003921569f, v_in->z * 0.003921569f, 33 float3 result = dot(rgb, gMonoMult) * gNightVisionMult;
|