Skip to content

Commit

Permalink
Update TerrainLighting.j3md
Browse files Browse the repository at this point in the history
add USE_SPECULARMAP_AS_SHININESS define to make this PR cleaner, and allow the SpecularMap to be used as regular specularColor if USE_SPECULARMAP_AS_SHININESS is not true/defined
  • Loading branch information
yaRnMcDonuts authored Aug 22, 2024
1 parent d3847d3 commit edea705
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ MaterialDef Terrain Lighting {

// The glow color of the object
Color GlowColor

// Use diffuse alpha when mixing
Boolean useSpecularMapAsShininess

}

Technique {
Expand Down Expand Up @@ -167,6 +171,7 @@ MaterialDef Terrain Lighting {
DIFFUSEMAP_11_SCALE : DiffuseMap_11_scale

USE_ALPHA : useDiffuseAlpha
USE_SPECULARMAP_AS_SHININESS : useSpecularMapAsShininess
}
}

Expand Down

0 comments on commit edea705

Please sign in to comment.