RedcrowProd
Member
|
Recompiling shaders
Hi,
i am following the instruction at
https://github.com/Esenthel/EsenthelEngi...Shaders.md
This is understood and done
Code:
open Titan Solution file Titan.sln
modify the Engine/Source/Graphics/Shader Compilers.cpp file
enable the "#define COMPILE_DX 1" (to compile for DirectX)
and uncomment which shader files should be recompiled (such as MAIN, DEFERRED, etc.)
"MAIN" includes all the basic shaders for drawing on the screen (lines, rectangles, text, ..) and other similar which are always used
Here is what i do :
-building the "engine"
- change //DataPath(EngineDataPath); to DataPath("../Data"); in initpre of the "Project" in the Titan solution as noted below.
project then will build, but not run, and it is complaining about dxcompiler.dll
can you let me know what am i doing wrong please ?
Code:
after making that change, running any project will compile selected shaders after 'InitPre' and before 'Init' stage
shaders will be stored in the 'DataPath' folder
so if using the "Project" project from Titan Solution file, 'DataPath' should be set inside 'InitPre' as: DataPath("../Data"); which will store shaders inside Data/Shader
once the shaders are recompiled, don't forget to use "Engine Builder" and create the new "Engine.pak" so it can be used by the Editor
|
|
04-05-2023 05:58 AM |
|
Esenthel
Administrator
|
|
04-05-2023 10:18 AM |
|
RedcrowProd
Member
|
RE: Recompiling shaders
okay that worked, as i dumped the .dll into the main project folder and i managed to rebuild the shaders.
thanks !
(This post was last modified: 04-10-2023 04:51 PM by RedcrowProd.)
|
|
04-06-2023 03:59 AM |
|