<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Asking for shadows on OnlineMaps generated mesh.]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=830&amp;type=atom" />
	<updated>2018-04-27T14:49:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=830</id>
		<entry>
			<title type="html"><![CDATA[Re: Asking for shadows on OnlineMaps generated mesh.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3576#p3576" />
			<content type="html"><![CDATA[<p>You do not need to modify anything. <br />Simple set the value that I wrote in my previous post.</p><p>P.S. Tileset DrawingElement shader it&#039;s for drawing elements (line, poly, rectangle), and not for main map mesh.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-04-27T14:49:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3576#p3576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Asking for shadows on OnlineMaps generated mesh.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3575#p3575" />
			<content type="html"><![CDATA[<p>Thanks for the quick reply, but we don&#039;t know almost anything about shaders. Can you please explain us what to modify in those two shaders you mention? So we don&#039;t have to study how they work. We just want the map to receive shadows from 3D objects</p>]]></content>
			<author>
				<name><![CDATA[ppizarro]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=553</uri>
			</author>
			<updated>2018-04-27T13:12:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3575#p3575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Asking for shadows on OnlineMaps generated mesh.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3574#p3574" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Online Maps Tileset Control / Materials &amp; Shaders / Tileset Shader - Tileset Cutout Shader</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-04-26T22:23:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3574#p3574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Asking for shadows on OnlineMaps generated mesh.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3573#p3573" />
			<content type="html"><![CDATA[<p>Hi! I am a Programmer of a game developer team.</p><p>I would like to know how to project shadows on the plane or terrain generated by the online maps service. I&#039;m instantiating Game Objects but they do not produce shadow. And looking at the shaders, I realized that if I eliminate that indicated code (&quot;Queue&quot;=&quot;Transparent-100&quot; ) it starts to show shadow but I lose the quality of the tiles. Some help? sorry for the google translation&nbsp; <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>Shader &quot;Infinity Code/Online Maps/Tileset DrawingElement&quot; {
Properties {
    _Color (&quot;Main Color&quot;, Color) = (1,1,1,1)
    _MainTex (&quot;Base (RGB) Trans (A)&quot;, 2D) = &quot;white&quot; {}
}

SubShader {
    Tags {&quot;Queue&quot;=&quot;Transparent-100&quot; &quot;IgnoreProjector&quot;=&quot;True&quot; &quot;RenderType&quot;=&quot;Transparent&quot;}
    LOD 200

CGPROGRAM
#pragma surface surf Lambert alpha

sampler2D _MainTex;
fixed4 _Color;

struct Input {
    float2 uv_MainTex;
    float2 uv_TrafficTex;
};

void surf (Input IN, inout SurfaceOutput o) {
    fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
    fixed3 ct = c.rgb;
    ct = ct * _Color;
    o.Albedo = ct;
    o.Alpha = c.a * _Color.a;
}
ENDCG
}</code></pre></div><p>[attached image]</p>]]></content>
			<author>
				<name><![CDATA[ppizarro]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=553</uri>
			</author>
			<updated>2018-04-26T18:10:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3573#p3573</id>
		</entry>
</feed>
