• ### What is your GameDev Story?

Public Group

This topic is 2424 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

n;float4x4 World;
float4x4 View;float4x4 World;
float4x4 View;
float4x4 Projectiofloat4x4 World;

float4x4 View;float4x4 World;

float4x4 View;
float4x4 Projection;

float4 AmbientColor = float4(1, 1, 1, 1);
float AmbientIntensity = 0.1;

{
float4 Position : POSITION0;
};

{
float4 Position : POSITION0;
};

{

float4 worldPosition = mul(input.Position, World);
float4 viewPosition = mul(worldPosition, View);
output.Position = mul(viewPosition, Projection);

return output;
}

{
return AmbientColor * AmbientIntensity;
}

technique Ambient
{
pass Pass1
{
}
}float4x4 Projection;

float4 AmbientColor = float4(1, 1, 1, 1);
float AmbientIntensity = 0.1;

{
float4 Position : POSITION0;
};

{
float4 Position : POSITION0;
};

{

float4 worldPosition = mul(input.Position, World);
float4 viewPosition = mul(worldPosition, View);
output.Position = mul(viewPosition, Projection);

return output;
}

{
return AmbientColor * AmbientIntensity;
}

technique Ambient
{
pass Pass1
{
}
}

i am trying to learn how to use shaders with directx and i found this code over d net

icould not understand the following thingsin above code

float4 Position : (POSITION0)?;

Also how these function works
technique Ambient
{
pass Pass1(wt is this)
{
}
}

Also, let me know if there is any video tutorial on shaders with directx.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 9
• 9
• 9
• 34
• 16
• ### Forum Statistics

• Total Topics
634123
• Total Posts
3015654
×