Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.cpp
| Show All 24 Lines | |||||
| #include "util_sky_model.h" | #include "util_sky_model.h" | ||||
| #include "util_foreach.h" | #include "util_foreach.h" | ||||
| #include "util_transform.h" | #include "util_transform.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Texture Mapping */ | /* Texture Mapping */ | ||||
| static ShaderEnum texture_mapping_type_init() | |||||
| { | |||||
| ShaderEnum enm; | |||||
| enm.insert("Point", TextureMapping::POINT); | |||||
| enm.insert("Texture", TextureMapping::TEXTURE); | |||||
| enm.insert("Vector", TextureMapping::VECTOR); | |||||
| enm.insert("Normal", TextureMapping::NORMAL); | |||||
| return enm; | |||||
| } | |||||
| static ShaderEnum texture_mapping_mapping_init() | |||||
| { | |||||
| ShaderEnum enm; | |||||
| enm.insert("None", TextureMapping::NONE); | |||||
| enm.insert("X", TextureMapping::X); | |||||
| enm.insert("Y", TextureMapping::Y); | |||||
| enm.insert("Z", TextureMapping::Z); | |||||
| return enm; | |||||
| } | |||||
| static ShaderEnum texture_mapping_projection_init() | |||||
| { | |||||
| ShaderEnum enm; | |||||
| enm.insert("Flat", TextureMapping::FLAT); | |||||
| enm.insert("Cube", TextureMapping::CUBE); | |||||
| enm.insert("Tube", TextureMapping::TUBE); | |||||
| enm.insert("Sphere", TextureMapping::SPHERE); | |||||
| return enm; | |||||
| } | |||||
| ShaderEnum TextureMapping::type_enum = texture_mapping_type_init(); | |||||
| ShaderEnum TextureMapping::mapping_enum = texture_mapping_mapping_init(); | |||||
| ShaderEnum TextureMapping::projection_enum = texture_mapping_projection_init(); | |||||
| TextureMapping::TextureMapping() | TextureMapping::TextureMapping() | ||||
| { | { | ||||
| translation = make_float3(0.0f, 0.0f, 0.0f); | translation = make_float3(0.0f, 0.0f, 0.0f); | ||||
| rotation = make_float3(0.0f, 0.0f, 0.0f); | rotation = make_float3(0.0f, 0.0f, 0.0f); | ||||
| scale = make_float3(1.0f, 1.0f, 1.0f); | scale = make_float3(1.0f, 1.0f, 1.0f); | ||||
| min = make_float3(-FLT_MAX, -FLT_MAX, -FLT_MAX); | min = make_float3(-FLT_MAX, -FLT_MAX, -FLT_MAX); | ||||
| max = make_float3(FLT_MAX, FLT_MAX, FLT_MAX); | max = make_float3(FLT_MAX, FLT_MAX, FLT_MAX); | ||||
| ▲ Show 20 Lines • Show All 4,631 Lines • Show Last 20 Lines | |||||