Howto:Multi-channel lightmap: Difference between revisions

Jump to navigation Jump to search
m (→‎Extending the multi-channel lightmap to use 8 channels or 2 X 4 rgba channels: actually, the article encourages people to look at these files, which is why linking to the DOES make sense ...)
Line 310: Line 310:


== Extending the multi-channel lightmap to use 8 channels or 2 X 4 rgba channels ==
== Extending the multi-channel lightmap to use 8 channels or 2 X 4 rgba channels ==


The multi-channel lightmap effect can be extended relatively easy to allow for as many as 8 light sources. The SpaceShuttle was extended to use 8 lights in the cockpit.
The multi-channel lightmap effect can be extended relatively easy to allow for as many as 8 light sources. The SpaceShuttle was extended to use 8 lights in the cockpit.
Line 316: Line 315:
Extending the multi-channel lightmap to allow for more lights should only be undertaken by experienced developers that are somewhat familiar with the XML effects wrapper and GLSL code as it requires to have shader code aircraft-side.  
Extending the multi-channel lightmap to allow for more lights should only be undertaken by experienced developers that are somewhat familiar with the XML effects wrapper and GLSL code as it requires to have shader code aircraft-side.  


 
* {{fg aircraft file|path=SpaceShuttle/Models/Effects/Interior/shuttle-interior.eff}}
Aircraft/SpaceShuttle/Models/Effects/Interior/shuttle-interior.eff
* {{fg aircraft file|path=SpaceShuttle/Effects/model-interior-extended.eff}}
 
* {{fg aircraft file|path=SpaceShuttle/Shaders/model-interior-ALS-extended-lightmap.frag}}
Aircraft/SpaceShuttle/Effects/model-interior-extended.eff
 
Aircraft/SpaceShuttle/Shaders/model-interior-ALS-extended-lightmap.frag
 


You can compare the above files against their counterparts to see the differences and how it was extended.  
You can compare the above files against their counterparts to see the differences and how it was extended.  


 
* {{fg aircraft file|path=SpaceShuttle/Models/Effects/Interior/shuttle-interior.eff}} (the above example file)
Aircraft/SpaceShuttle/Models/Effects/Interior/shuttle-interior.eff (the above example file)
* {{fgdata effect|model-interior.eff}}
 
* {{fg root file|Shaders/model-interior-ALS-detailed.frag}}
* {{Fgdata effect|model-interior.eff}}
* {{Fgdata file|Shaders/model-interior-ALS-detailed.frag}}


== Additional reading ==
== Additional reading ==

Navigation menu