Skip to content

TextureOslFile

File#

(TextureOslFile)

  • Category: /Texture/OSL
  • Default object name: file

Go to Technical page.

Description#

Compute an Open Shading Language Shader using a file

Attributes#

Name Type Description
Pass Through bool If checked, the current texture is not evaluated and the value of the attribute selected in Pass Through Attribute is directly forwarded.
Master Input string Name of the attribute that will be used as output if Pass Through is enabled.
Invert bool If checked, the texture is inverted.
Opacity double Set the opacity of the texture.
Projection long Define the projection used to evaluate the texture.
Space long Define whether the texture is evaluated in 2D or 3D. In 2D space, the texture is stretched along the projection axis whereas in 3D space all components are used.
Axis long Define the projection axis.
Uv Slot reference (UvSlot) Define which UV slot is used when the project mode is set to UV.
Object Space long Set the space in which the object must be considered when computing the projection.
Reference Positions string Set the name of the property that contains reference positions of the geometry that have to be used when computing projections.
Uv Property string Set the name of the property that contains uv's of the geometry that have to be used when computing projections.
Camera reference (Camera) Define which camera is used when the texture is in Camera projection mode.
Camera Occlusion bool When on the texture looks for potential occluder between the sample position and the camera. If no occluder is found the sample gets mapped.
Camera Occluders reference (Group) Define which geometries are occluders when camera occlusion is enabled. By default it uses the 3D layer geometries.
Reference Object reference (SceneItem) If an object is selected, the texture will use the object's transformation matrix to compute the texture coordinates.
Projection Translate double[3] Offset the position of the projection. Enable with Planar, Cylindrical, Spherical, Cubic.
Projection Rotate double[3] Offset the rotation of the projection. Enable with Planar, Cylindrical, Spherical, Cubic.
Projection Scale double[3] Offset the scaling of the projection. Enable with Planar, Cylindrical, Spherical, Cubic.
Fit To Bounding Box action
Uv Translate double[3] Offset the UV by the specified values in UVW space.
Uv Rotate double[3] Rotate the UV by the specified values in UVW space.
Uv Scale double[3] Scale the UV by the specified values in UVW space.
Force Compilation action
Geometries reference (Group) Define which geometries to raytrace on. By default it uses the 3D layer geometries.
Rays Type long Define the type of rays casted during the texture evaluation.
OSL Shader Filename string OSL shader file, can either be a source file or a compiled one.