User Tools

Site Tools


02_user_tutorials:20_light:01_first_steps:04_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
02_user_tutorials:20_light:01_first_steps:04_light-modeling-light-shader [2026/03/20 16:22] – Tim02_user_tutorials:20_light:01_first_steps:04_light-modeling-light-shader [2026/11/13 04:39] (current) – MH
Line 111: Line 111:
   * **setEmissive**  defines the amount of emitted power   * **setEmissive**  defines the amount of emitted power
   * **setInterpolatedTransparency** switch to turn on or off the interpolation of transmitted radiation   * **setInterpolatedTransparency** switch to turn on or off the interpolation of transmitted radiation
 +
 +
 +Note: setDiffuse, setSpecular, setTransparency, and setDiffuseTransparency are separate contributions, not percentages of one another. setDiffuseTransparency represents diffuse transmission in addition to the directional transmission set by setTransparency. Their combined value should generally stay at or below 1 per color channel; otherwise, GroIMP warns. By default, transparency also reduces the diffuse and specular reflection contributions.
 +setShininess is not an energy fraction. It controls how concentrated the specular highlight is: higher values produce a sharper highlight.
 +
 +With the default interpolatedTransparency = true, GroIMP multiplies both reflection channels by the non-transmitted fraction:
 +
 +effectiveDiffuse = diffuse × (1 − transparency)
 +
 +effectiveSpecular = specular × (1 − transparency)
 +
 +For example, with diffuse 0.6, specular 0.2, and transparency 0.5, the effective diffuse and specular contributions become 0.3 and 0.1. So transparency does not change the settings; it reduces how much of each reflection contribution is used. This is calculated per colour channel. The diffuse colour’s alpha and Fresnel reflection add further detail to the final result.
  
 Alternatively, the parameter can be changed/set using the Attribute Editor: Alternatively, the parameter can be changed/set using the Attribute Editor:
Line 122: Line 134:
 {{ :tutorials:light-spec_vs_shiny.png?direct&450 |}} {{ :tutorials:light-spec_vs_shiny.png?direct&450 |}}
  
-Note: In modern Phong shader implementations, roughness and glossiness are used instead of specular and shininess. 
  
 === Common Shader Definitions === === Common Shader Definitions ===
02_user_tutorials/20_light/01_first_steps/04_light-modeling-light-shader.txt · Last modified: by MH