|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// Planar/Triplanar convention for Unity in world space |
|
|
|
void GetTriplanarCoordinate(real3 position, out real2 uvXZ, out real2 uvXY, out real2 uvZY) |
|
|
|
void GetTriplanarCoordinate(float3 position, out float2 uvXZ, out float2 uvXY, out float2 uvZY) |
|
|
|
uvXZ = real2(position.z, position.x); |
|
|
|
uvXY = real2(position.x, position.y); |
|
|
|
uvZY = real2(position.z, position.y); |
|
|
|
uvXZ = float2(position.z, position.x); |
|
|
|
uvXY = float2(position.x, position.y); |
|
|
|
uvZY = float2(position.z, position.y); |
|
|
|
} |
|
|
|
|
|
|
|
real LerpWhiteTo(real b, real t) |
|
|
|