# HG changeset patch # User koryspansel # Date 1315425726 25200 # Node ID fd55825393df7f2b5afcda441e7767efd76339b1 # Parent 858e3689073e1bc19ba5d1bf73bfde06539d1109 Update block texture; Change filtering modes diff -r 858e3689073e -r fd55825393df Data/Shaders/Environment.fx --- 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 = ; - MinFilter = LINEAR; - MagFilter = LINEAR; - AddressU = WRAP; - AddressV = WRAP; + MinFilter = ANISOTROPIC; + MagFilter = ANISOTROPIC; + AddressU = CLAMP; + AddressV = CLAMP; }; struct VertexOutput diff -r 858e3689073e -r fd55825393df LightClone/Source/RenderContext.cpp --- 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; diff -r 858e3689073e -r fd55825393df LightClone/Source/View.cpp --- 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(); diff -r 858e3689073e -r fd55825393df LightClone/ToDo.txt --- 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