16 float a = 1.0f / (1.0f +
I.z);
17 float b = -
I.x *
I.y * a;
22 matcap_uv.
x = -matcap_uv.
x;
24 return matcap_uv * 0.496f + 0.5f;
34 const WorldData &world_data = world.world_data;
51 const WorldData &world_data = world.world_data;
float dot(VecOp< float, D >, VecOp< float, D >) RET
TEX_TEMPLATE DataVec textureLod(T, FltCoord, float) RET
SamplerBase< float, 2, false, true > sampler2DArray
SamplerBase< float, 2 > sampler2D
float3 get_matcap_lighting(const workbench::World &world, sampler2D diffuse_matcap, sampler2D specular_matcap, float3 base_color, float3 N, float3 I)
float2 matcap_uv_compute(float3 I, float3 N, bool flipped)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float