18 float2 edge = edge_start - edge_pos;
31 float dist =
dot(perp, frag_co - edge_start);
37 return float4(0.0f, 0.5f, 0.0f, 1.0f);
46 return float4(0.0f, 1.0f, 0.0f, 1.0f);
55 dist = (data.y - 0.5f) * 2.5f;
ccl_device_inline float cos_theta(const float3 w)
ccl_device_inline float sin_theta(const float3 w)
VecBase< float, D > normalize(VecOp< float, D >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
float length(VecOp< float, D >) RET
float cos_from_sin(float s)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
float4 pack_line_data(float2 frag_co, float2 edge_start, float2 edge_pos)
void unpack_line_data(float2 data, float2 &perp, float &dist)
float4 pack_line_data_no_aa()