Last updated

API / geotoolkit3d / scene / surface / AbstractSurface / AbstractSurface

Namespace: AbstractSurface

surface.AbstractSurface.AbstractSurface

Table of contents

Namespaces
Type Aliases

Contents

Type Aliases

CommonShaderOptions

Ƭ CommonShaderOptions: Object

Type declaration

NameTypeDescription
enableshadingbooleanSet false to disable the lighting and shading effect of the surface.
Default is true.
polygonoffsetbooleanTrue to use offset preventing Z-fighting/occlusion when overlaying other objects.
Default is false.
polygonoffsetfactornumberFactor for polygon offset, > 0 will make surface closer to camera, < 0 will make it farther.
Default is 1.
smoothshadingfactornumberHow smooth the shading of the surface should be. On a scale of 1 to 0, 1 being 100% smooth, 0 being flat-shaded. Using 1 for 100% smooth shading might be faster on very large surfaces, due to using precomputed normals exclusively. Default is 1.
wireframebooleanIf this surface should render in wireframe mode. Default is false.

TextureOptions

Ƭ TextureOptions: Object

Texture options for the surface.
Only supported by Heightmap surface and GridSurface.

Type declaration

NameTypeDescription
clipoutofrange?booleanIf enabled, the textured area will be limited to the texture size.
By default is true (to allow OpenGL texture repeating outside of range, this need to be set to false)
coordinatemode?TextureCoordinateModeThe texture coordinate mapping type.
Determine how the texture size, offset and rotation are interpreted.
Default is TextureCoordinateMode.Local
enable?booleanEnable or disable (show or hide) the texture, for convenience.
fliphorizontal?booleanMirror the texture on its own horizontal axis (U axis in UV mapping terms).
flipvertical?booleanMirror the texture on its own vertical axis (V axis in UV mapping terms).
offset?Vector2The position of the Texture origin (the bottom left corner of the image, assuming X increase on the right and Y increase upward).
Default value is Vector2(0, 0)
opacity?numberThe texture opacity, default is 1.0 (opaque)
rotation?numberThe texture rotation around the origin point, in radian.
Default value is 0.
scale?Vector2Scale the texture X/Y axis using scalar values. Will multiply with the texture size.
Conveniently allow to modify the texture scale when computing the size is too complex (ex: using Patterns).
Default value is Vector2(1, 1)
size?Vector2The position of the Texture origin (the bottom left corner of the image, assuming X increase on the right and Y increase upward).
Default is set to the local size of the Surface (ex: surface.boundingBox.size()), meaning the texture will cover the entire Surface boundaries.

TextureOptionsIn

Ƭ TextureOptionsIn: Object

Type declaration

NameTypeDescription
texture?TextureThe diffuse color texture, to paint on the surface.
Only supported by Heightmap surface and GridSurface.
textureoptions?TextureOptionsTransformation options to use on the diffuse color texture.
(No effect if option.texture has not been set yet)

TextureOptionsOut

Ƭ TextureOptionsOut: Object

Type declaration

NameTypeDescription
texture?TextureThe diffuse color texture, to paint on the surface.
Will be undefined if not previously defined.
textureoptionsRequired<TextureOptions>Transformation options to use on the diffuse color texture.
(No effect if option.texture has not been set yet)