7#include "gpu_shader_codegen_lib.glsl"
22 df = v.xyz + dF_impl(v.xyz);
38#if defined(GPU_FRAGMENT_SHADER) || defined(GLSL_CPP_STUBS)
52 float3 surfgrad = dHd.
x * Rx + dHd.
y * Ry;
54 strength =
max(strength, 0.0f);
ccl_device_forceinline float3 dPdx(const ccl_private ShaderData *sd)
ccl_device_forceinline float3 dPdy(const ccl_private ShaderData *sd)
float derivative_scale_get(KernelGlobals &kg)
VecBase< float, D > normalize(VecOp< float, D >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
VecBase< float, 3 > cross(VecOp< float, 3 >, VecOp< float, 3 >) RET
void node_bump(float strength, float dist, float filter_width, float height, float3 N, float2 height_xy, float invert, KernelGlobals &kg, const ShadingData &sd, float3 &result)
void differentiate_texco(float3 v, float3 &df)
float2x2 invert(float2x2 mat)