Record Class SceneShaderInfo
java.lang.Object
java.lang.Record
guideme.siteexport.SceneShaderInfo
- Record Components:
lighting- The type of lighting applied by the shader.alphaTest- Fragments with an alpha below this value are discarded. 0 means no alpha test.vertexColor- Whether the shader multiplies the vertex color into the output color.textured- Whether the shader samples the texture bound toSampler0.
public record SceneShaderInfo(SceneShaderInfo.Lighting lighting, float alphaTest, boolean vertexColor, boolean textured)
extends Record
Describes how the shaders of a render pipeline process geometry, so that the web viewer can approximate them.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSceneShaderInfo(SceneShaderInfo.Lighting lighting, float alphaTest, boolean vertexColor, boolean textured) Creates an instance of aSceneShaderInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thealphaTestrecord component.final booleanIndicates whether some other object is "equal to" this one.static SceneShaderInfofromPipeline(com.mojang.blaze3d.pipeline.RenderPipeline pipeline) Derives the shader info from the pipeline definition, mirroring the behavior of the vanilla core shaders.final inthashCode()Returns a hash code value for this object.lighting()Returns the value of thelightingrecord component.booleantextured()Returns the value of thetexturedrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevertexColorrecord component.
-
Constructor Details
-
SceneShaderInfo
public SceneShaderInfo(SceneShaderInfo.Lighting lighting, float alphaTest, boolean vertexColor, boolean textured) Creates an instance of aSceneShaderInforecord class.- Parameters:
lighting- the value for thelightingrecord componentalphaTest- the value for thealphaTestrecord componentvertexColor- the value for thevertexColorrecord componenttextured- the value for thetexturedrecord component
-
-
Method Details
-
fromPipeline
Derives the shader info from the pipeline definition, mirroring the behavior of the vanilla core shaders. This is used for all pipelines that noSceneShaderInfoProviderhandles. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
lighting
-
alphaTest
-
vertexColor
public boolean vertexColor()Returns the value of thevertexColorrecord component.- Returns:
- the value of the
vertexColorrecord component
-
textured
-