All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.opengl.renderer.shader.ShaderController.kt Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
package ru.casperix.opengl.renderer.shader

import ru.casperix.opengl.renderer.impl.ShaderAttributes

class ShaderController(val shader: ShaderBuffer, val attributes: ShaderAttributes) {

    val uAmbientColor = ShaderUniform.from(shader, "uAmbientColor")
    val uLightPos = ShaderUniform.from(shader, "uLightPos")
    val uModel = ShaderUniform.from(shader, "uModel")
    val uProjectionViewModel = ShaderUniform.from(shader, "uProjectionViewModel")
    val uAlbedoTexture = ShaderUniform.from(shader, "uAlbedoTexture")
    val uTexScale = ShaderUniform.from(shader, "uTexScale")
    val uNormalTexture = ShaderUniform.from(shader, "uNormalTexture")
    val uSpecularTexture = ShaderUniform.from(shader, "uSpecularTexture")
    val uMaterialColor = ShaderUniform.from(shader, "uMaterialColor")
    val uTextureArray = ShaderUniform.from(shader, "uTextureArray")
    val uTileSmoothMode = ShaderUniform.from(shader, "uTileSmoothMode")
    val uTileMapTexture = ShaderUniform.from(shader, "uTileMapTexture")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy