From 81becebeba66e6339db5cc0f6a8d519900a8cdf4 Mon Sep 17 00:00:00 2001 From: reduz Date: Fri, 20 Jun 2014 13:41:01 -0700 Subject: [PATCH] Updated tutorial_fixed_materials (markdown) --- tutorial_fixed_materials.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tutorial_fixed_materials.md b/tutorial_fixed_materials.md index b6d5978..aeea5f6 100644 --- a/tutorial_fixed_materials.md +++ b/tutorial_fixed_materials.md @@ -82,4 +82,11 @@ When drawing points or lines, the size of them can be adjusted here per material ### Textures +Almost all of the parameters above can have a texture assigned to them. There are four options to where they can get their UV coordinates: +* **UV Coordinates (UV Array)**: This is the regular UV coordinate array that was imported with the model. +* **UV * UV XForm **: UV Coordinates multiplied by the UV Xform matrix. +* **UV2 Coordinates **: Some imported models might have come with a second set of UV coordinates. These are common for detail textures or for baked light textures. +* **Sphere**: Spherical coordinates (difference of the normal at the pixel by the camera normal). + +The value of every pixel of the texture is multiplied by the original param. This means that if a texture is loaded for diffuse, it will be multiplied by the color of the diffuse color parameter. Same applies to all the others except for specular exponent, which is replaced.