<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Shaders%3ACustomUnitShadingFramework</id>
	<title>Shaders:CustomUnitShadingFramework - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Shaders%3ACustomUnitShadingFramework"/>
	<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Shaders:CustomUnitShadingFramework&amp;action=history"/>
	<updated>2026-04-21T00:50:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Shaders:CustomUnitShadingFramework&amp;diff=1525&amp;oldid=prev</id>
		<title>Qrow: Created page with &quot;The Custom Unit Shading Framework was developed by jK to facilitate the writing of custom unit &amp; feature shaders in Lua for the SpringRTS engine.&lt;br /&gt; You can access its repository from here: https://github.com/jk3064/Custom-Unit-Shader-Framework &lt;br /&gt;&lt;br /&gt; Writing new shaders requires the following two steps: * Creation of a new file in the ModelMaterials folder that defines the material. Here you should specify the following: ** material properties (camera usage, te...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Shaders:CustomUnitShadingFramework&amp;diff=1525&amp;oldid=prev"/>
		<updated>2026-02-24T06:05:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The Custom Unit Shading Framework was developed by jK to facilitate the writing of custom unit &amp;amp; feature shaders in Lua for the SpringRTS engine.&amp;lt;br /&amp;gt; You can access its repository from here: https://github.com/jk3064/Custom-Unit-Shader-Framework &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; Writing new shaders requires the following two steps: * Creation of a new file in the ModelMaterials folder that defines the material. Here you should specify the following: ** material properties (camera usage, te...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Custom Unit Shading Framework was developed by jK to facilitate the writing of custom unit &amp;amp; feature shaders in Lua for the SpringRTS engine.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can access its repository from here: https://github.com/jk3064/Custom-Unit-Shader-Framework&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Writing new shaders requires the following two steps:&lt;br /&gt;
* Creation of a new file in the ModelMaterials folder that defines the material. Here you should specify the following:&lt;br /&gt;
** material properties (camera usage, textures, culling, etc.)&lt;br /&gt;
** whether it&amp;#039;s a unit or feature shader (feature shaders have feature=true)&lt;br /&gt;
** callins that can affect unit/feature rendering (such as UnitCreated, DrawUnit, as well as the feature equivalents)&lt;br /&gt;
** the unit and feature defs which will be affected by the shader&lt;br /&gt;
* Creation of a shader file in the ModelMaterials/Shaders. This file should contain the actual GLSL shader as well as the definition of the uniform values used within it.&lt;br /&gt;
&amp;lt;br /&amp;gt;For details refer to the existing unit &amp;amp; feature example shaders.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* To test feature shaders do the following steps:&lt;br /&gt;
** Open modinfo.lua and change modtype to 1 so it can be run directly&lt;br /&gt;
** Start spring using Custom Unit Shaders as the game.&lt;br /&gt;
** In the console, type /cheat and /give ad0_aleppo_X, where X is any number from 1 to 10, e.g. /give ad0_aleppo_5&lt;/div&gt;</summary>
		<author><name>Qrow</name></author>
	</entry>
</feed>