Pbr Shader Data
@Serializable
Constructors
Link copied to clipboard
constructor(baseColor: MaterialAttribute = ConstColorAttribute(ColorData(MdColor.GREY toneLin 500)), roughness: MaterialAttribute = ConstValueAttribute(0.5f), metallic: MaterialAttribute = ConstValueAttribute(0f), emission: MaterialAttribute = ConstColorAttribute(ColorData(Color.BLACK.toLinear())), normalMap: MapAttribute? = null, aoMap: MapAttribute? = null, displacementMap: MapAttribute? = null, parallaxStrength: Float = 1.0f, parallaxOffset: Float = 0.0f, parallaxSteps: Int = 16, genericSettings: GenericMaterialSettings = GenericMaterialSettings())
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun PbrShaderData.createPbrShader(meshLayoutInfo: MeshLayoutInfo, modelMats: List<ModelMatrixComposition>, sceneShaderData: SceneShaderData): KslPbrShader
Link copied to clipboard
suspend fun MaterialShaderData.createShader(meshLayoutInfo: MeshLayoutInfo, modelMats: List<ModelMatrixComposition>, sceneShaderData: SceneShaderData): DrawShader
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun PbrShaderData.updatePbrShader(shader: KslPbrShader, sceneShaderData: SceneShaderData): Boolean
Link copied to clipboard
suspend fun MaterialShaderData.updateShader(shader: DrawShader?, sceneShaderData: SceneShaderData): Boolean