|
Blender
V2.93
|
#include <nodes.h>
Public Types | |
| enum | Type { POINT = 0 , TEXTURE = 1 , VECTOR = 2 , NORMAL = 3 } |
| enum | Mapping { NONE = 0 , X = 1 , Y = 2 , Z = 3 } |
| enum | Projection { FLAT , CUBE , TUBE , SPHERE } |
Public Member Functions | |
| TextureMapping () | |
| Transform | compute_transform () |
| bool | skip () |
| void | compile (SVMCompiler &compiler, int offset_in, int offset_out) |
| int | compile (SVMCompiler &compiler, ShaderInput *vector_in) |
| void | compile (OSLCompiler &compiler) |
| int | compile_begin (SVMCompiler &compiler, ShaderInput *vector_in) |
| void | compile_end (SVMCompiler &compiler, ShaderInput *vector_in, int vector_offset) |
Public Attributes | |
| float3 | translation |
| float3 | rotation |
| float3 | scale |
| float3 | min |
| float3 | max |
| bool | use_minmax |
| Type | type |
| Mapping | x_mapping |
| Mapping | y_mapping |
| Mapping | z_mapping |
| Projection | projection |
| enum TextureMapping::Type |
| void TextureMapping::compile | ( | OSLCompiler & | compiler | ) |
Definition at line 201 of file nodes.cpp.
References compute_transform(), OSLCompiler::parameter(), and skip().
| void TextureMapping::compile | ( | SVMCompiler & | compiler, |
| int | offset_in, | ||
| int | offset_out | ||
| ) |
Definition at line 155 of file nodes.cpp.
References SVMCompiler::add_node(), compute_transform(), SVMCompiler::encode_uchar4(), float3_to_float4(), max, min, NODE_MIN_MAX, NODE_TEXTURE_MAPPING, NODE_VECTOR_MATH, NODE_VECTOR_MATH_NORMALIZE, NORMAL, SVM_STACK_INVALID, type, use_minmax, Transform::x, Transform::y, and Transform::z.
Referenced by compile_begin().
| int TextureMapping::compile | ( | SVMCompiler & | compiler, |
| ShaderInput * | vector_in | ||
| ) |
| int TextureMapping::compile_begin | ( | SVMCompiler & | compiler, |
| ShaderInput * | vector_in | ||
| ) |
Definition at line 180 of file nodes.cpp.
References compile(), skip(), SVMCompiler::stack_assign(), SVMCompiler::stack_find_offset(), and SocketType::VECTOR.
| void TextureMapping::compile_end | ( | SVMCompiler & | compiler, |
| ShaderInput * | vector_in, | ||
| int | vector_offset | ||
| ) |
Definition at line 194 of file nodes.cpp.
References skip(), SVMCompiler::stack_clear_offset(), and ShaderInput::type().
| Transform TextureMapping::compute_transform | ( | ) |
Definition at line 81 of file nodes.cpp.
References fabsf, NONE, NORMAL, POINT, rotation, scale, signf(), TEXTURE, transform_euler(), transform_inverse(), transform_scale(), transform_translate(), transform_transposed_inverse(), translation, type, VECTOR, float3::x, x_mapping, float3::y, y_mapping, float3::z, z_mapping, and zero_float3().
Referenced by compile(), and LightManager::device_update_background().
| bool TextureMapping::skip | ( | ) |
Definition at line 138 of file nodes.cpp.
References one_float3(), rotation, scale, translation, use_minmax, X, x_mapping, Y, y_mapping, Z, z_mapping, and zero_float3().
Referenced by compile(), compile_begin(), and compile_end().
| Projection TextureMapping::projection |
| float3 TextureMapping::rotation |
Definition at line 49 of file nodes.h.
Referenced by compute_transform(), and skip().
| float3 TextureMapping::scale |
Definition at line 50 of file nodes.h.
Referenced by compute_transform(), and skip().
| float3 TextureMapping::translation |
Definition at line 48 of file nodes.h.
Referenced by compute_transform(), and skip().
| Type TextureMapping::type |
Definition at line 56 of file nodes.h.
Referenced by compile(), and compute_transform().
| bool TextureMapping::use_minmax |
| Mapping TextureMapping::x_mapping |
Definition at line 59 of file nodes.h.
Referenced by compute_transform(), and skip().
| Mapping TextureMapping::y_mapping |
Definition at line 59 of file nodes.h.
Referenced by compute_transform(), and skip().
| Mapping TextureMapping::z_mapping |
Definition at line 59 of file nodes.h.
Referenced by compute_transform(), and skip().