mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 00:05:40 +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
|
#define IN_HLSL
|
||||||
#include "../common/shdrConsts.h"
|
#include "../shdrConsts.h"
|
||||||
|
|
||||||
struct v2f
|
struct v2f
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#define IN_HLSL
|
#define IN_HLSL
|
||||||
#include "../common/shdrConsts.h"
|
#include "../shdrConsts.h"
|
||||||
|
|
||||||
struct a2v
|
struct a2v
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,8 @@ singleton CustomMaterial( BasicRibbonMat )
|
||||||
|
|
||||||
new ShaderData( TexturedRibbonShader )
|
new ShaderData( TexturedRibbonShader )
|
||||||
{
|
{
|
||||||
DXVertexShaderFile = "shaders/common/ribbons/TexturedRibbonShaderV.hlsl";
|
DXVertexShaderFile = "shaders/common/ribbons/texRibbonShaderV.hlsl";
|
||||||
DXPixelShaderFile = "shaders/common/ribbons/TexturedRibbonShaderP.hlsl";
|
DXPixelShaderFile = "shaders/common/ribbons/texRibbonShaderP.hlsl";
|
||||||
|
|
||||||
pixVersion = 2.0;
|
pixVersion = 2.0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#define IN_HLSL
|
#define IN_HLSL
|
||||||
#include "../common/shdrConsts.h"
|
#include "../shdrConsts.h"
|
||||||
|
|
||||||
struct v2f
|
struct v2f
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#define IN_HLSL
|
#define IN_HLSL
|
||||||
#include "../common/shdrConsts.h"
|
#include "../shdrConsts.h"
|
||||||
|
|
||||||
struct a2v
|
struct a2v
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#define IN_HLSL
|
#define IN_HLSL
|
||||||
#include "../common/shdrConsts.h"
|
#include "../shdrConsts.h"
|
||||||
#include "shaders/common/torque.hlsl"
|
#include "../torque.hlsl"
|
||||||
|
|
||||||
uniform sampler2D ribTex : register(S0);
|
uniform sampler2D ribTex : register(S0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#define IN_HLSL
|
#define IN_HLSL
|
||||||
#include "../common/shdrConsts.h"
|
#include "../shdrConsts.h"
|
||||||
|
|
||||||
struct a2v
|
struct a2v
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue