changeset 2:fd55825393df

Update block texture; Change filtering modes
author koryspansel <koryspansel@bendbroadband.com>
date Wed, 07 Sep 2011 13:02:06 -0700
parents 858e3689073e
children 6f227dd9a94f
files Data/Shaders/Environment.fx LightClone/Source/RenderContext.cpp LightClone/Source/View.cpp LightClone/ToDo.txt
diffstat 4 files changed, 18 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/Data/Shaders/Environment.fx	Wed Sep 07 12:55:08 2011 -0700
+++ b/Data/Shaders/Environment.fx	Wed Sep 07 13:02:06 2011 -0700
@@ -7,10 +7,10 @@
 sampler TextureSampler = sampler_state
 {
 	Texture		= <kTexture>;
-	MinFilter	= LINEAR;
-	MagFilter	= LINEAR;
-	AddressU	= WRAP;
-	AddressV	= WRAP;
+	MinFilter	= ANISOTROPIC;
+	MagFilter	= ANISOTROPIC;
+	AddressU	= CLAMP;
+	AddressV	= CLAMP;
 };
 
 struct VertexOutput
--- a/LightClone/Source/RenderContext.cpp	Wed Sep 07 12:55:08 2011 -0700
+++ b/LightClone/Source/RenderContext.cpp	Wed Sep 07 13:02:06 2011 -0700
@@ -32,8 +32,10 @@
 	kParameters.BackBufferWidth				= nWidth;
 	kParameters.BackBufferHeight			= nHeight;
 	kParameters.BackBufferFormat			= D3DFMT_UNKNOWN;
-	kParameters.MultiSampleType				= D3DMULTISAMPLE_NONE;
-	kParameters.MultiSampleQuality			= 0;
+//	kParameters.MultiSampleType				= D3DMULTISAMPLE_NONE;
+//	kParameters.MultiSampleQuality			= 0;
+	kParameters.MultiSampleType				= D3DMULTISAMPLE_4_SAMPLES;
+	kParameters.MultiSampleQuality			= 2;
 	kParameters.SwapEffect					= D3DSWAPEFFECT_DISCARD;
 	kParameters.hDeviceWindow				= kWindow;
 	kParameters.Windowed					= TRUE;
--- a/LightClone/Source/View.cpp	Wed Sep 07 12:55:08 2011 -0700
+++ b/LightClone/Source/View.cpp	Wed Sep 07 13:02:06 2011 -0700
@@ -68,6 +68,8 @@
 	pInterfaceVertexBuffer	= NULL;
 	pBlockTexture			= NULL;
 	pBackgroundTexture		= NULL;
+	pDialog1Texture			= NULL;
+	pDialog2Texture			= NULL;
 	pCursorTexture			= NULL;
 
 	memset(pActionTextures, 0, sizeof(pActionTextures));
@@ -158,14 +160,14 @@
 		return Error_Fail;
 	}
 
-	eCode = kContext.CreateTextureFromFile("Data\\Textures\\Block01.tga", &pBlockTexture);
+	eCode = kContext.CreateTextureFromFile("Data\\Textures\\Block02.tga", &pBlockTexture);
 	if(eCode != Error_Success)
 	{
 		Terminate();
 		return Error_Fail;
 	}
 
-	eCode = kContext.CreateTextureFromFile("Data\\Textures\\Background.tga", &pBackgroundTexture);
+	eCode = kContext.CreateTextureFromFile("Data\\Textures\\Background00.tga", &pBackgroundTexture);
 	if(eCode != Error_Success)
 	{
 		Terminate();
--- a/LightClone/ToDo.txt	Wed Sep 07 12:55:08 2011 -0700
+++ b/LightClone/ToDo.txt	Wed Sep 07 13:02:06 2011 -0700
@@ -1,6 +1,6 @@
-1. Check for ending conditions
-2. Only draw slots that are being used
-3. Center grid in viewport
-4. Button tool tips
-5. Main menu
-6. Robot model & texture
+1. Only draw slots that are being used
+2. Center grid in viewport
+3. Button tool tips
+4. Main menu
+5. Robot model & texture
+6. Separate button images from dialog box