mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge pull request #3 from alphaslime/Ribbon-Implementation-Smallpatch
Fixed a shader related crash and textured ribbon's material
This commit is contained in:
commit
40bdf19265
7 changed files with 9 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#define IN_HLSL
|
||||
#include "../common/shdrConsts.h"
|
||||
#include "../shdrConsts.h"
|
||||
|
||||
struct v2f
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define IN_HLSL
|
||||
#include "../common/shdrConsts.h"
|
||||
#include "../shdrConsts.h"
|
||||
|
||||
struct a2v
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@ singleton CustomMaterial( BasicRibbonMat )
|
|||
|
||||
new ShaderData( TexturedRibbonShader )
|
||||
{
|
||||
DXVertexShaderFile = "shaders/common/ribbons/TexturedRibbonShaderV.hlsl";
|
||||
DXPixelShaderFile = "shaders/common/ribbons/TexturedRibbonShaderP.hlsl";
|
||||
DXVertexShaderFile = "shaders/common/ribbons/texRibbonShaderV.hlsl";
|
||||
DXPixelShaderFile = "shaders/common/ribbons/texRibbonShaderP.hlsl";
|
||||
|
||||
pixVersion = 2.0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define IN_HLSL
|
||||
#include "../common/shdrConsts.h"
|
||||
#include "../shdrConsts.h"
|
||||
|
||||
struct v2f
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define IN_HLSL
|
||||
#include "../common/shdrConsts.h"
|
||||
#include "../shdrConsts.h"
|
||||
|
||||
struct a2v
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#define IN_HLSL
|
||||
#include "../common/shdrConsts.h"
|
||||
#include "shaders/common/torque.hlsl"
|
||||
#include "../shdrConsts.h"
|
||||
#include "../torque.hlsl"
|
||||
|
||||
uniform sampler2D ribTex : register(S0);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define IN_HLSL
|
||||
#include "../common/shdrConsts.h"
|
||||
#include "../shdrConsts.h"
|
||||
|
||||
struct a2v
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue