OGLHUDShader.kl

Types

OGLHUDShader (object)

バージョン 1.12.0 で追加.

The OGLHUDShader is used to draw HUD geometry, or Heads Up Display objects. It positions the geometry on screen in screen coordinates.

Uniforms

Name Type Description Default
u_color Color The diffuse color Color(1.0, 0.0, 0.0)

Attributes

Name Type Description
positions Vec3 Geometry positions
/*
** Example: OGLHUDShader
*/

require InlineDrawing;
  
operator entry() {

      InlineDrawing draw = OGLInlineDrawing();
      InlineShader shader = draw.registerShader(OGLHUDShader);
      InlineMaterial mat = shader.getOrCreateMaterial('green');
      mat.setUniform('u_color', Color(0.0, 1.0, 0.0));
  
}

/*
** Output:


*/

Methods

  OGLHUDShader ( in OGLHUDShader other )
  OGLHUDShader ( in String name )
  OGLHUDShader ()
OGLHUDShader clone ? ()