Changes

Jump to navigation Jump to search
2 bytes added ,  16:57, 6 February 2020
Line 64: Line 64:  
==== The atlas shader ====
 
==== The atlas shader ====
 
The atlas shader allows you to use a texture as grid, and only map a section of it to the furniture at a time. For this you need to define these variables in the Furniture table:
 
The atlas shader allows you to use a texture as grid, and only map a section of it to the furniture at a time. For this you need to define these variables in the Furniture table:
* AtlasObject - The mesh that should use atlas texturing, this should be the '''ComponentName''' defined in the '''Mesh''' section of your furniture.
+
* AtlasObject - The mesh that should use atlas texturing, this should be the '''ComponentName''' defined in the '''Models''' section of your furniture.
 
* AtlasDimensions - The width and height of your texture atlas, e.g. '''[ 2; 2 ]''' if you have a 2 by 2 texture atlas
 
* AtlasDimensions - The width and height of your texture atlas, e.g. '''[ 2; 2 ]''' if you have a 2 by 2 texture atlas
 
* AtlasCount - The amount of images in your atlas, e.g. 3 if you're only using the (first row) and (second row, first column) of your atlas
 
* AtlasCount - The amount of images in your atlas, e.g. 3 if you're only using the (first row) and (second row, first column) of your atlas

Navigation menu