Package com.aspose.threed
Class ShaderSet
- java.lang.Object
-
- com.aspose.threed.ShaderSet
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ShaderSet extends java.lang.Object implements java.io.Closeable
Shader programs for each kind of materials
-
-
Method Summary
Modifier and Type Method Description void
close()
Dispose this instance and release all shader programs.ShaderProgram
getFallback()
Gets the fallback shader when required shader is unavailableShaderProgram
getLambert()
Gets the shader that used to render the lambert materialShaderProgram
getPbr()
Gets the shader that used to render the PBR materialShaderProgram
getPhong()
Gets the shader that used to render the phong materialvoid
setFallback(ShaderProgram value)
Sets the fallback shader when required shader is unavailablevoid
setLambert(ShaderProgram value)
Sets the shader that used to render the lambert materialvoid
setPbr(ShaderProgram value)
Sets the shader that used to render the PBR materialvoid
setPhong(ShaderProgram value)
Sets the shader that used to render the phong material
-
-
-
Constructor Detail
-
ShaderSet
public ShaderSet()
Construct the instance ofShaderSet
-
-
Method Detail
-
getLambert
public ShaderProgram getLambert()
Gets the shader that used to render the lambert material
-
setLambert
public void setLambert(ShaderProgram value)
Sets the shader that used to render the lambert material- Parameters:
value
- New value
-
getPhong
public ShaderProgram getPhong()
Gets the shader that used to render the phong material
-
setPhong
public void setPhong(ShaderProgram value)
Sets the shader that used to render the phong material- Parameters:
value
- New value
-
getPbr
public ShaderProgram getPbr()
Gets the shader that used to render the PBR material
-
setPbr
public void setPbr(ShaderProgram value)
Sets the shader that used to render the PBR material- Parameters:
value
- New value
-
getFallback
public ShaderProgram getFallback()
Gets the fallback shader when required shader is unavailable
-
setFallback
public void setFallback(ShaderProgram value)
Sets the fallback shader when required shader is unavailable- Parameters:
value
- New value
-
close
public void close()
Dispose this instance and release all shader programs.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-