This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline float3 uv_to_sphere(const float2 uv, const float2 image_size) | |
{ | |
float2 st = (uv+float2(0.5f)) / image_size; | |
float latitude = (st.y - 0.5f) * PI; | |
float longitude = (st.x - 0.5f) * 2 * PI; | |
float radiusAtLat = cos(latitude); | |
float3 normal; | |
normal.x = radiusAtLat * cos(longitude); | |
normal.y = sin(latitude); | |
normal.z = radiusAtLat * sin(longitude); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Group { | |
name Point_Radial_Force | |
label "\[value strength]" | |
selected true | |
xpos 490 | |
ypos -269 | |
addUserKnob {20 User} | |
addUserKnob {7 strength l Strength} | |
strength -1 | |
} |
NewerOlder