Skip to content

X3DSharedTextureDef

Uncategorized - no domain claims this class yet. Categorize

Class Documentation

Edit documentation

A shared texture slot: a texture that shaders find by name. See X3DSharedData for registration, filtering, register and BindLocation.

When the client creates the slot, it also creates a 1x1 default texture of the dimension that type selects, filled with DefaultValue. Slots with the same type, DefaultValue and TextureElementType share one default texture.

Properties

DefaultValue

Vec4 = [0, 0, 0, 0]
15.21
Edit documentation

The colour of the default texture, (r, g, b, a).

ElementCount

U8 = 4
15.5
Edit documentation

Purpose not yet identified. The client does not read it when it creates the slot.

IsCurrentFramebufferDepthRead

Bool = false
Edit documentation

The client stores it with the texture slot. What it changes is not yet identified.

SAMPLER

Link<X3DSharedSamplerDef> = "0x0"
14.23
Edit documentation

The shared sampler that the client stores with the texture, found by the linked sampler's name. If PlatformMask or ShaderModel filter that sampler out, the texture has no sampler.

TextureElementType

U8 = 0
15.5
Edit documentation

Selects the pixel format of the default texture: 1 and 2 give one format, any other value another. Which formats these are is not yet identified.

frequency

U8 = 0
Edit documentation

Purpose not yet identified. The client does not read it when it creates the slot.

name

String = ""
Edit documentation

The name under which shaders find the texture. Before the lookup, the client strips the suffix _SharedTexture or __TX from the name that the shader declares.

register

I32 = -1
Edit documentation

If -1, the client binds the texture per effect. Any other value leaves it out of the effect bindings. See X3DSharedData.

type

U8 = 0
Edit documentation

The dimension of the default texture:

Value Default texture
0 2D
1 3D
2 Cube map
3 2D. Shipped data uses it for the shadow map depth texture.
4 Cube map. Shipped data uses it for the point-light shadow map depth texture.
5 2D array
6 2D array
7 Cube map array
8 Cube map array

A value above 8 creates no default texture. What distinguishes the values of each pair is not yet identified.

Referenced by 2 classes · 2 properties