On 15.11.2006 17:39, Piotr Obrzut wrote: > hi, > > I was wandering what should I find in "splat alpha map" (shader > variable that is used with terrain shaders)? > > I though that for given material with given index it returns 1 or 0 > (according to index from material palette). Unfortunately it gives > different output for base and other materials (when from c++ both > are filled same), or at last something else have influence on the > output. > > Base shader have 'copy' mixmode and second have 'add'. When I set the > output color of first shader with black color, I was expecting that > this sentence (SplatSampler is "splat alpha map"): > > float4 splat = tex2D(SplatSampler, In.vBaseTexCoords); > float4 OutputColor = splat; > return OutputColor;
Think about what the base map is: a single map used for the terrain surface beyond the splatting distance. Hence a splat map does not make sense for the base map: it doesn't have one. -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
