mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Document some shader behaviour
S3DVertexTangents also documents that it's passed as TEXCOORD1 and TEXCOORD2, but easy to miss, so added some comments to the hlsl shader. Also not all materials work well as base materials. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6452 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -288,6 +288,11 @@ int main()
|
||||
|
||||
To demonstrate this, we create two materials with a different base
|
||||
material, one with EMT_SOLID and one with EMT_TRANSPARENT_ADD_COLOR.
|
||||
The role of the base material is to set the alpha (transparency)
|
||||
and blending settings as used in the base material. Avoid the
|
||||
EMT_NORMAL_... or EMT_PARALLAX... types as base materials as they
|
||||
are internally shaders themselves and will only create conflicts with
|
||||
your shaders.
|
||||
*/
|
||||
|
||||
// create materials
|
||||
|
Reference in New Issue
Block a user