User Tools

Site Tools


tutorials:light-modeling-light-shader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:light-modeling-light-shader [2025/01/22 15:13] – [Lambert Shader] MHtutorials:light-modeling-light-shader [2025/06/03 10:04] (current) MH
Line 87: Line 87:
 static Phong myShader = new Phong(); static Phong myShader = new Phong();
 static { static {
-  myShader.setDiffuse(new RGBAShader(0.1, 0.9, 0.0));+  myShader.setDiffuse(new RGBColor(0.1, 0.9, 0.0));
   myShader.setTransparency(new Graytone(0.1));   myShader.setTransparency(new Graytone(0.1));
   myShader.setSpecular(new Graytone(0.1));   myShader.setSpecular(new Graytone(0.1));
Line 137: Line 137:
  
 === Side Switch Shader === === Side Switch Shader ===
-The //SideSwitchShader// allows to two use different Shades for a planar object as parallelograms or triangulated mash surfaces etc. The //SideSwitchShader(Shader frontShader, Shader backShader)// expects two input shader, where as the //frontShader// will define the upper side shader, where as the //backShader// will be applied to the downside of the object.+The //SideSwitchShader// allows to two use different Shades for a planar object as parallelograms or triangulated mesh surfaces etc. The //SideSwitchShader(Shader frontShader, Shader backShader)// expects two input shader, where as the //frontShader// will define the upper side shader, where as the //backShader// will be applied to the downside of the object.
  
  
tutorials/light-modeling-light-shader.1737555224.txt.gz · Last modified: 2025/01/22 15:13 by MH