@JsType(isNative=true, namespace="<global>", name="Object") public class MaterialAppearanceOptions extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
closed
When true, the geometry is expected to be closed so MaterialAppearance#renderState has backface culling enabled.
|
boolean |
faceForward
When true, the fragment shader flips the surface normal as needed to ensure that the normal faces the viewer to avoid dark spots.
|
boolean |
flat
When true, flat shading is used in the fragment shader, which means lighting is not taking into account.
|
String |
fragmentShaderSource
GLSL fragment shader source to override the default fragment shader.
|
Material |
material
The material used to determine the fragment color.
|
MaterialAppearance.MaterialSupport |
materialSupport
The type of materials that will be supported.
|
Object |
renderState
Render state to override the default render state.
|
boolean |
translucent
When true, the geometry is expected to appear translucent so MaterialAppearance#renderState has alpha blending enabled.
|
String |
vertexShaderSource
GLSL vertex shader source to override the default vertex shader.
|
Constructor and Description |
---|
MaterialAppearanceOptions() |
@JsProperty public boolean flat
@JsProperty public boolean faceForward
@JsProperty public boolean translucent
@JsProperty public boolean closed
@JsProperty public MaterialAppearance.MaterialSupport materialSupport
@JsProperty public Material material
Material.ColorType()
@JsProperty public String vertexShaderSource
@JsProperty public String fragmentShaderSource
@JsProperty public Object renderState
Copyright © 2019. All rights reserved.