com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class ShaderTechnique



  • public class ShaderTechnique
    extends Object
    A shader technique represents a concrete rendering implementation.
    • Constructor Detail

      • ShaderTechnique

        public ShaderTechnique()
        Initializes a new instance of the ShaderTechnique class.
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the description of this technique
      • setDescription

        public void setDescription(String value)
        Sets the description of this technique
        Parameters:
        value - New value
      • getShaderLanguage

        public ShadingLanguage getShaderLanguage()
        Gets the shader language used by this technique.
      • setShaderLanguage

        public void setShaderLanguage(ShadingLanguage value)
        Sets the shader language used by this technique.
        Parameters:
        value - New value
      • getShaderVersion

        public String getShaderVersion()
        Gets the shader version used by this technique.
      • setShaderVersion

        public void setShaderVersion(String value)
        Sets the shader version used by this technique.
        Parameters:
        value - New value
      • getShaderFile

        public String getShaderFile()
        Gets the file name of the external shader file.
      • setShaderFile

        public void setShaderFile(String value)
        Sets the file name of the external shader file.
        Parameters:
        value - New value
      • getShaderContent

        public byte[] getShaderContent()
        Gets the content of a embedded shader script. It could be HLSL/GLSL shader source file.
      • setShaderContent

        public void setShaderContent(byte[] value)
        Sets the content of a embedded shader script. It could be HLSL/GLSL shader source file.
        Parameters:
        value - New value
      • getShaderEntry

        public String getShaderEntry()
        Gets the entry point of the shader, some shader like HLSL can have customized shader entries.
      • setShaderEntry

        public void setShaderEntry(String value)
        Sets the entry point of the shader, some shader like HLSL can have customized shader entries.
        Parameters:
        value - New value
      • getRenderAPI

        public RenderingAPI getRenderAPI()
        Gets the rendering API used by this technique
      • setRenderAPI

        public void setRenderAPI(RenderingAPI value)
        Sets the rendering API used by this technique
        Parameters:
        value - New value
      • getRenderAPIVersion

        public String getRenderAPIVersion()
        Gets the version of the rendering API.
      • setRenderAPIVersion

        public void setRenderAPIVersion(String value)
        Sets the version of the rendering API.
        Parameters:
        value - New value
      • getShaderParameters

        public Map<String,String> getShaderParameters()
        Gets the shader parameter definition. The key is the name of the dynamic property, and value is the shader parameter name that the property connected to.
      • addBinding

        public void addBinding(String property,
                               String shaderParameter)
        Binds the dynamic property to shader parameter
        Parameters:
        property - The name of the dynamic property.
        shaderParameter - The name of the shader parameter.