This wiki is archived from 2021-09-05

Talk:Shaders

From Planetary Annihilation: TITANS and Classic PA Wiki
Revision as of 12:34, 19 February 2016 by Dom (talk | contribs) (Created page with "= range_ring_instanced.fs = This is responsible for rendering range rings like patrol circle, mex area commands and that kind of thing. What I have worked out so far: When a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

range_ring_instanced.fs

This is responsible for rendering range rings like patrol circle, mex area commands and that kind of thing.

What I have worked out so far: When a range is being rendered, a huge low poly sphere is used as a scaffold. (I call it a scaffold because it is really just used to generate fragments for the fragment shader that is not too wasteful.

The sphere is centred on the origin of the unit/range and is sized to encompass the range of the unit.