Posted October 24, 201212 yr Hello i have the following code i have problems with:// esp_dll.h#include <windows.h>#include "d3dx9.h"#include <d3d9.h>#pragma onceusing namespace System;namespace esp_dll {public ref class Class1 { void SetModelColor(LPDIRECT3DDEVICE9 pDevice, float r, float g, float b, float a, float glowr, float glowg, float glowb, float glowa) { float lightValues[4] = {r, g, b, a}; float glowValues[4] = {glowr, glowg, glowb, glowa}; pDevice->SetPixelShaderConstantF(1, lightValues, 1); pDevice->SetPixelShaderConstantF(3, glowValues, 1); } };}Its not working when i try to call SetPixelShaderConstantF(pDevice, 3, {1.0f, 1.0f, 1.0f, 1.0f}, 1);
Create an account or sign in to comment