summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/spotLight.vs
Commit message (Collapse)AuthorAge
* We only need 3x3 matrix for model rotation specDan Goodliffe2024-01-13
|
* Fix order or multiple to address reversed rotationDan Goodliffe2024-01-12
|
* Full implementation passing through light defs from vertex dataDan Goodliffe2024-01-11
| | | | | Note: there is a bug where the light position/direction are rotated backwards to the model even though its using the model's rotation matrix... no idea why/how.
* Initial commit with working light instancingDan Goodliffe2024-01-10
|
* Shader viewPoint now an integerDan Goodliffe2023-12-03
|
* Switch to millimeters for spatial unitsDan Goodliffe2023-11-15
| | | | | | Mostly a case of changing far too many magic numbers, something else to fix I guess. I probably missed something. Also there's some hackery when loading 3D models, which are still assumed to be in metres.
* Send position and rotation matrix to GPU separatelyDan Goodliffe2023-11-13
|
* Fix up the way spotlight shader worksDan Goodliffe2023-04-17
| | | | | Was mostly through lack of understanding and coincidences. Position is now the only vertex data, direction is moved to a uniform. Instancing will address this by making everything instance data.
* Add rendering support for spot lightsDan Goodliffe2023-01-05