FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.64k stars 343 forks source link

Add a Standard Two-Sides Shader #378

Closed IceGuye closed 1 year ago

IceGuye commented 1 year ago

A standard two-sides shader (backface-culling disabled) is very useful in 3D games. Many objects can be just a plane, such as a flag, tree leaf, grass, banner, etc.. Here I add a standard two-sides shader. Almost everything is same as a standard shader, but with cull_face setting to None.