<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3APigment_Pattern</id>
	<title>Reference:Pigment Pattern - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3APigment_Pattern"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Pigment_Pattern&amp;action=history"/>
	<updated>2026-04-06T16:30:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Pigment_Pattern&amp;diff=6980&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Reference Migration Initial Load</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Pigment_Pattern&amp;diff=6980&amp;oldid=prev"/>
		<updated>2012-03-15T19:07:44Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Reference Migration Initial Load&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:07, 15 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Pigment_Pattern&amp;diff=6979&amp;oldid=prev</id>
		<title>Jholsenback: link and content repair</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Pigment_Pattern&amp;diff=6979&amp;oldid=prev"/>
		<updated>2012-03-15T13:46:55Z</updated>

		<summary type="html">&lt;p&gt;link and content repair&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Patterns]]&lt;br /&gt;
{{#indexentry:pigment_pattern, keyword}}&lt;br /&gt;
{{#indexentry:pigment_pattern, pattern}}&lt;br /&gt;
{{#indexentry:keyword, pigment_pattern}}&lt;br /&gt;
{{#indexentry:pattern, pigment_pattern}}&lt;br /&gt;
&amp;lt;p&amp;gt;Use any pigment as a pattern. Instead of using the pattern directly on the object, a&lt;br /&gt;
pigment_pattern converts the pigment to gray-scale first. For each point, the gray-value&lt;br /&gt;
is checked against a list and the corresponding item is then used for the texture at&lt;br /&gt;
that particular point. For values between listed items, an averaged texture is calculated.&lt;br /&gt;
&amp;lt;br&amp;gt;Texture items can be color, pigment, normal or texture and are specified in a&lt;br /&gt;
color_map, pigment_map, normal_map or texture_map.&lt;br /&gt;
&amp;lt;br&amp;gt;It takes a standard pigment specification.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Syntax:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PIGMENT:&lt;br /&gt;
  pigment {&lt;br /&gt;
    pigment_pattern { PIGMENT_BODY }&lt;br /&gt;
    color_map { COLOR_MAP_BODY } |&lt;br /&gt;
    colour_map { COLOR_MAP_BODY } | &lt;br /&gt;
    pigment_map { PIGMENT_MAP_BODY }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
NORMAL:&lt;br /&gt;
  normal {&lt;br /&gt;
    pigment_pattern { PIGMENT_BODY } [Bump_Size]&lt;br /&gt;
    normal_map { NORMAL_MAP_BODY }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
TEXTURE:&lt;br /&gt;
  texture {&lt;br /&gt;
    pigment_pattern { PIGMENT_BODY }&lt;br /&gt;
    texture_map { TEXTURE_MAP_BODY }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
ITEM_MAP_BODY:&lt;br /&gt;
  ITEM_MAP_IDENTIFIER | ITEM_MAP_ENTRY...&lt;br /&gt;
  ITEM_MAP_ENTRY:&lt;br /&gt;
  [ GRAY_VALUE  ITEM_MAP_ENTRY... ]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This pattern is also useful when parent and children patterns need to be&lt;br /&gt;
transformed independently from each other. Transforming the pigment_pattern&lt;br /&gt;
will not affect the child textures. When any of the child textures should be&lt;br /&gt;
transformed, apply it to the specific MAP_ENTRY.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This can be used with any pigments, ranging from a simple checker to very&lt;br /&gt;
complicated nested pigments. For example:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pigment {&lt;br /&gt;
  pigment_pattern {&lt;br /&gt;
    checker White, Black&lt;br /&gt;
    scale 2&lt;br /&gt;
    turbulence .5&lt;br /&gt;
    }&lt;br /&gt;
  pigment_map {&lt;br /&gt;
    [ 0, checker Red, Green scale .5 ]&lt;br /&gt;
    [ 1, checker Blue, Yellow scale .2 ]&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;Note&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; This pattern uses a pigment to get the gray values. If you want to&lt;br /&gt;
get the pattern from an image, you should use the [[Reference:Image Pattern|:image_pattern|image_pattern]].&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>