Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/image.h
| Context not available. | |||||
| if (projection == 0) | if (projection == 0) | ||||
| uv = direction_to_equirectangular(co); | uv = direction_to_equirectangular(co); | ||||
| else | else if (projection == 1) | ||||
| uv = direction_to_mirrorball(co); | uv = direction_to_mirrorball(co); | ||||
| else { | |||||
| uint layout = flags >> 4; | |||||
| uv = direction_to_cubemap(co, layout); | |||||
| } | |||||
| float4 f = svm_image_texture(kg, id, uv.x, uv.y, flags); | float4 f = svm_image_texture(kg, id, uv.x, uv.y, flags); | ||||
| Context not available. | |||||