August 12, 200619 yr There's a folder 'ShadersHLSL' (HLSL= "High Level Shader Language") in FSX demo folder, with source code files!Can add-on developers write their own shaders for FSX?:9
August 12, 200619 yr Moderator Those aren't "source files." The are .fx definitions that define and generate the shader effects. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
August 12, 200619 yr Yes I noticed that too. It would seem that the default FSX shader effects can be customised.This is really great because it opens the way for add on developers to make the shaders better! For example, the current "wet runway" effect could be better (IMHO) so hopefully someone can "fix" it. FSX... Love it! :)
August 12, 200619 yr Dont know... maybe FSX just passes the shader code to the GPU for it to compile?
August 12, 200619 yr DirectX can load HLSL shader from a plain text file and compile during the runtime of the program.Maybe this is just more convenient during development, and in the final product shaders are precompiled (and thus uneditible), but this is just my guess.
August 12, 200619 yr I sure hope they dont precompile the shaders. That would be against the "open" nature of the FS series. These shaders should be customisable like everything else. Please MS please! :)
August 12, 200619 yr >How does the code get compiled into FSX ??The GPU does the compiling (it has to--only it knows its instruction set). So on startup FS sends the shader files to the GPU, it compiles them, then we save the compiled code to disk to use next time.
August 12, 200619 yr > then we save the compiled code to disk to use next time.Hmm that would explain why is still ran ok after I deleted them all.
August 12, 200619 yr Author >So on startup FS sends the shader files to>the GPU, it compiles them, then we save the compiled code to>disk to use next time.Mike,Could you tell us where the compiled code is saved (folder/file)?Thanks
Create an account or sign in to comment