Package Basic.Shaders

Class SimpleShader

java.lang.Object
Basic.Shaders.SimpleShader

public class SimpleShader extends Object

Simple shader example.

Related links: SimpleShader.java source, SimpleShader catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

Scene Meta Information
meta tags   Document Metadata
title SimpleShader.x3d
description Simple shader example
creator John Stewart
translator Holger Seelig, John Carlson, Don Brutzman and Jeff Malnick
created 26 May 2009
translated 15 October 2009
modified 20 October 2019
reference http://www.opengl.org/wiki/Fragment_Shader
reference http://www.opengl.org/wiki/http://www.opengl.org/wiki/Vertex_Shader
reference https://www.web3d.org/x3d/wiki/index.php/X3D_Plugfest
subject X3D shader example
reference originals/simpleShader.x3dv
reference ShaderTutorialInstantReality.pdf
generator Titania V3.0.3, http://titania.create3000.de
comment World of Titania
outputStyle nicest
warning under development
generator X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit
identifier https://www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShader.x3d
license ../../license.html
 

This program uses the X3D Java Scene Access Interface Library (X3DJSAIL). It has been produced using the X3dToJava.xslt stylesheet (version control) is used to create Java source code from an original .x3d model.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor to create this object.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.web3d.x3d.jsail.Core.X3D
    Provide a shallow copy of the X3D model.
    final void
    Create and initialize the X3D model for this object.
    static void
    main(String[] args)
    Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleShader

      public SimpleShader()
      Default constructor to create this object.
  • Method Details

    • initialize

      public final void initialize()
      Create and initialize the X3D model for this object.
    • getX3dModel

      public org.web3d.x3d.jsail.Core.X3D getX3dModel()
      Provide a shallow copy of the X3D model.
      Returns:
      SimpleShader model
      See Also:
    • main

      public static void main(String[] args)
      Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
      Parameters:
      args - array of input parameters, provided as arguments
      See Also: