BlinnPhongShaderData

@Serializable
data class BlinnPhongShaderData(val baseColor: MaterialAttribute = ConstColorAttribute(ColorData(MdColor.GREY toneLin 500)), val specularColor: MaterialAttribute = ConstColorAttribute(ColorData(Color.WHITE.toLinear())), val shininess: MaterialAttribute = ConstValueAttribute(16f), val specularStrength: MaterialAttribute = ConstValueAttribute(1f), val genericSettings: GenericMaterialSettings = GenericMaterialSettings()) : MaterialShaderData

Constructors

Link copied to clipboard
constructor(baseColor: MaterialAttribute = ConstColorAttribute(ColorData(MdColor.GREY toneLin 500)), specularColor: MaterialAttribute = ConstColorAttribute(ColorData(Color.WHITE.toLinear())), shininess: MaterialAttribute = ConstValueAttribute(16f), specularStrength: MaterialAttribute = ConstValueAttribute(1f), genericSettings: GenericMaterialSettings = GenericMaterialSettings())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun copy(genericSettings: GenericMaterialSettings = this.genericSettings): MaterialShaderData
Link copied to clipboard
suspend fun MaterialShaderData.createShader(meshLayoutInfo: MeshLayoutInfo, modelMats: List<ModelMatrixComposition>, sceneShaderData: SceneShaderData): DrawShader
Link copied to clipboard
fun MaterialShaderData.matchesShader(shader: DrawShader?): Boolean
Link copied to clipboard
suspend fun MaterialShaderData.updateShader(shader: DrawShader?, sceneShaderData: SceneShaderData): Boolean