<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Cheap_Decals</id>
	<title>Cheap Decals - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Cheap_Decals"/>
	<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Cheap_Decals&amp;action=history"/>
	<updated>2026-04-07T16:58:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.splashdamage.com/index.php?title=Cheap_Decals&amp;diff=1429&amp;oldid=prev</id>
		<title>192.168.0.129 at 16:51, 15 October 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Cheap_Decals&amp;diff=1429&amp;oldid=prev"/>
		<updated>2007-10-15T16:51:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Cheap decals are spawned from the game script instead of via the effect system. They are cheaper to maintain than the &amp;quot;big&amp;quot; decals, the disadvantage is they only work for relatively unimportant decals like small bullet holes. Big grenade blasts for example will just look ugly (as they would clip into a surface if it wasn't flat).&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{main|Cheap Decals}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
Each decal declaration defines a single type of impact, &amp;quot;bullet/wood&amp;quot; &amp;quot;blaster/metal&amp;quot; the decal specifies what material to use for rendering the decal and what part of the material's texture should be used. There can be several decals painted into a single texture (i.e. a texture sheet) all those decals will then be rendered in one batch. Hence it is recommended to put as many decals as possible on a single texture sheet. &lt;br /&gt;
&lt;br /&gt;
== General syntax ==&lt;br /&gt;
Decals are specified just like any other declaration in the game, the files have a .decal extension and are stored in the decals directory.&lt;br /&gt;
&lt;br /&gt;
=== Sample decal declaration ===&lt;br /&gt;
Let's start with a quick example...&lt;br /&gt;
&lt;br /&gt;
  decal bullets/metal {&lt;br /&gt;
  	material	&amp;quot;textures/particles/decals/sheet&amp;quot;&lt;br /&gt;
  	lifeTime	15&lt;br /&gt;
  	size		4,6&lt;br /&gt;
  	&lt;br /&gt;
  	gridSize	16,16&lt;br /&gt;
  	image 		0,0,1,1&lt;br /&gt;
  	image		3,0,1,1&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* '''material''' - Specify what material to render the decal with.&lt;br /&gt;
* '''lifeTime''' - Specify how long the decal stays in the world (in seconds).&lt;br /&gt;
* '''size''' - Specify the minimum and the maximum size of the decal (a random size between these two will then be chosen).&lt;br /&gt;
* '''gridSize''' - Specify the number of grid cells in the texture sheet. (All decals using the same texture sheet should specify the same size for this).&lt;br /&gt;
* '''image''' - Specify the image rectangle of the decal in grid units. This can be any rectangle. If there are several images specified in a decal a random image will be chosen every time a decal is spawned.&lt;br /&gt;
** The way the numbers are set up is left,right,width,height&lt;br /&gt;
&lt;br /&gt;
[[Category:Art]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.0.129</name></author>
		
	</entry>
</feed>