I want this simple effect, set pixel (x,y) to color (rgb).
Basicly the same function as Surface objects "set pixel" action (Surface : Set pixel at (X( "object" ),Y( "object" )) to GetRGB(255, 0, 0))
The reason I won't use surface object is because it feels wrong to include such a heavy object just for this feature that would be acomplished just as well and faster by a shader, but maybe that's a wrong assumption?
The shader would have 3 user defined variables (parameters) "Xpixel","Ypixel" and "pixelColor".
This example would set the pixel at objects position to red:
Set effect parameter "Xpixel" to X("object")
Set effect parameter "Ypixel" to Y("object")
Set effect parameter "pixelColor" to to GetRGB(255, 0, 0)
I feel like this should be really simple to do so I tried making this myself but I can't figure out how to set the pixel coordinates and only end up with a fully colored texture...
Anyway, here's an (incomplete) xml for copy/paste to maybe save you some time and clarify what I want:
<effect>
<name>Set pixel</name>
<description>Sets color of pixel at destination</description>
// EDIT <author></author>
<parameter>
<name>Xpixel</name>
<code>Xpixel</code>
<description>Pixel X coordinate.</description>
// EDIT <type></type>
<property>edit</property>
<value>0</value>
</parameter>
<parameter>
<name>Ypixel</name>
<code>Ypixel</code>
<description>Pixel Y coordinate.</description>
// EDIT <type></type>
<property>edit</property>
<value>0</value>
</parameter>
<parameter>
<name>pixelColor</name>
<code>pixelColor</code>
<description>The color of the pixel.</description>
<type>int_float4</type>
<property>color</property>
</parameter>
</effect>