1#ifndef NXDK_PGRAPH_TESTS_SRC_SHADERS_FIXED_FUNCTION_APPROXIMATION_SHADER_H_
2#define NXDK_PGRAPH_TESTS_SRC_SHADERS_FIXED_FUNCTION_APPROXIMATION_SHADER_H_
4#include "shaders/perspective_vertex_shader.h"
5#include "xbox_math_matrix.h"
7using namespace XboxMath;
13 float z_max = 0x7FFF,
float fov_y = M_PI * 0.25f,
float near = 1.0f,
23 int OnLoadConstants()
override;
26 vector_t light_direction_ = {0, 0, 1, 1};
Programmable vertex shader that mimicks the behavior of the fixed function pipeline.
Definition fixed_function_approximation_shader.h:10
void SetDirectionalLightCastDirection(const vector_t &direction)
Sets the direction in which the directional light is casting light.
Definition fixed_function_approximation_shader.cpp:21
void SetDirectionalLightDirection(const vector_t &direction)
Sets the direction from the origin towards the directional light.
Definition fixed_function_approximation_shader.cpp:17