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

cwinter.codecraft.graphics.materials.MaterialBrightenedXYZRGB.scala Maven / Gradle / Ivy

The newest version!
package cwinter.codecraft.graphics.materials

import cwinter.codecraft.util.CompileTimeLoader
import cwinter.codecraft.util.maths.{ColorRGB, VertexXYZ}
import org.scalajs.dom.raw.{WebGLRenderingContext => GL}


private[graphics] class MaterialBrightenedXYZRGB(implicit gl: GL)
extends JSMaterial[VertexXYZ, ColorRGB, Unit](
  gl = gl,
  vsSource = CompileTimeLoader.loadResource("xyz_rgb_vs.glsl"),
  fsSource = CompileTimeLoader.loadResource("rgb1_brighten_fs.glsl"),
  "vertexPos",
  Some("vertexCol"),
  GL.DEPTH_TEST
)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy