Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


AngeredBovine

Member Since 26 Mar 2013
Offline Last Active Mar 27 2013 10:41 PM

Posts I've Made

In Topic: Problem rendering 2D images in Direct3D 11

27 March 2013 - 10:41 PM

Yes. Thanks for your help.


In Topic: Problem rendering 2D images in Direct3D 11

27 March 2013 - 05:02 PM

Thank you for the help. I was previously using this vertex shader:

 

PixelInputType main(VertexInputType input)
{

	PixelInputType output;

	input.position.w = 1.0f;

	output.position = mul(input.position, worldMatrix);
	output.position = mul(output.position, viewMatrix);
	output.position = mul(output.position, projectionMatrix);

	output.tex = input.tex;

	return output;

}

 

I followed your advice and removed the multiplication by the world and view matrices. I now use this shader:

 

PixelInputType main(VertexInputType input)
{

	PixelInputType output;

	input.position.w = 1.0f;

	output.position = mul(input.position, projectionMatrix);

	output.position.z = 0.0f;

	output.tex = input.tex;

	return output;

}

PARTNERS