Commit d71feba
authored
Add reflectivity/shininess support to TerrainLighting.frag (#2306)
* Add reflectivity/shininess support to TerrainLighting.frag
Uses the (previously unused) SpecularMap as a gray-scale texture for painting shininess/reflectivity on the whole terrain.
* Update TerrainLighting.j3md
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
* Update TerrainLighting.frag
* Update TerrainLighting.frag1 parent 6709ee8 commit d71feba
2 files changed
Lines changed: 23 additions & 3 deletions
File tree
- jme3-terrain/src/main/resources/Common/MatDefs/Terrain
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
637 | 654 | | |
638 | 655 | | |
639 | 656 | | |
640 | 657 | | |
641 | 658 | | |
642 | 659 | | |
643 | 660 | | |
644 | | - | |
645 | | - | |
646 | | - | |
| 661 | + | |
647 | 662 | | |
648 | 663 | | |
649 | 664 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| 174 | + | |
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
| |||
0 commit comments