[Solved] RTShaderLib HLSL / CG

Problems building or running the engine, queries about how to use features etc.
Post Reply
Hilarius86
Halfling
Posts: 48
Joined: Thu Feb 14, 2019 11:27 am
x 8

[Solved] RTShaderLib HLSL / CG

Post by Hilarius86 »

Ogre Version: :1.11.5:
Self-compiled with recommended dependencies
Operating System: :Win10x64:
Render System: :DirectX11:

RTShaderLib\materials\DualQuaternionSkinning_Shadow.material defines

Ogre/RTShader/shadow_caster_dq_ps_hlsl

which in turn uses

source DualQuaternionSkinning_Shadow.hlsl

RTShaderLib/HLSL and said file are no longer part of media as were until 1.11.3.

The old HLSL files are "broken" as in causing compile errors. Any hints on working this one out?
Last edited by Hilarius86 on Tue Jul 21, 2020 8:50 am, edited 1 time in total.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: RTShaderLib HLSL / CG

Post by paroj »

You should go for the 1.12/ master branch as the RTSS has been largely rewritten there. Note that the master branch is quite stable as Ogre 1.12 will be released in the next few days.

The shadows will look like this on master:
Image

which is quite close given that the same shaders work as expected when used through D3D9/ Cg.

If you want to work on the D3D11 shaders (which is very appreciated), you might get some inspiration here:
https://bitbucket.org/sinbad/ogre/pull- ... v2/commits

However, the discussion here:
https://github.com/OGRECave/ogre/issues/973
Post Reply