Material - Detail macro AS: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ " to "")
m (Some wiki formatting)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''DT+MC+AS'''
'''DT+MC+AS'''
PixelShaderID="DetailMacroAS";
<syntaxhighlight lang="cpp">
VertexShaderID="BasicAS";
PixelShaderID = "DetailMacroAS";
class Stage1
VertexShaderID = "BasicAS";
{
 
  texture="temp\domek\Omitka1_detail.paa";
class Stage1
  uvSource="tex";
{
  class uvTransform
texture = "temp\domek\Omitka1_detail.paa";
  {
uvSource = "tex";
    aside[]={16,0,0};
class uvTransform
    up[]={0,16,0};
{
    dir[]={0,0,0};
aside[] = { 16, 0, 0 };
    pos[]={0,0,0};
up[] = { 0, 16, 0 };
  };
dir[] = { 0, 0, 16 };
};
pos[] = { 0, 0, 0 };
class Stage2
};
{
};
  texture="temp\domek\test02_MC.tga";
 
  uvSource="tex1"; // coordinates from 2.UV set
class Stage2
};
{
class Stage3
texture = "temp\domek\test02_MC.tga";
{
uvSource = "tex1"; // coordinates from 2.UV set
  texture="temp\domek\TestUV2_AS.tga";
};
  uvSource="tex1"; // coordinates from 2.UV set
 
};
class Stage3
{
texture = "temp\domek\TestUV2_AS.tga";
uvSource = "tex1"; // coordinates from 2.UV set
};
 
</syntaxhighlight>

Latest revision as of 14:27, 24 September 2024

DT+MC+AS

PixelShaderID = "DetailMacroAS";
VertexShaderID = "BasicAS";

class Stage1
{
	texture = "temp\domek\Omitka1_detail.paa";
	uvSource = "tex";
	class uvTransform
	{
		aside[]	= { 16, 0, 0 };
		up[]	= { 0, 16, 0 };
		dir[]	= { 0, 0, 16 };
		pos[]	= { 0, 0, 0 };
	};
};

class Stage2
{
	texture = "temp\domek\test02_MC.tga";
	uvSource = "tex1"; // coordinates from 2.UV set
};

class Stage3
{
	texture = "temp\domek\TestUV2_AS.tga";
	uvSource = "tex1"; // coordinates from 2.UV set
};