write a shader for P3D v4

Recommended Posts

Hi, I would like to change the color of a targeted material on an aircraft via a shader, is it possible to do this ? I precise that I don't want to use Lua script.
thanks for you reply.

Share this post

Link to post
Help AVSIM continue to serve you!
Please donate today!


Adding shaders is pretty easy. P3D has a built-in shader compiler, so you don't have to bother with an IDE/compiler yourself. You can basically just drop your HLSL source code into the sim as an addon package.

A couple of shaders that handle textures are in "\Prepar3D v4\ShadersHLSL\FixedFunction" - I suggest that you take a look at those, maybe you'll find a suitable spot where you can add your own code with little effort.

Best regards

Edited by Lorby_SI

Share this post

Link to post

thanks a lot for your reply Lorby_SY, I readed a couple of docs and explor a couple of files but in firts times shaders are not easy to understand, I'll continue to get informations, so you confirm to me that is possible ?


Share this post

Link to post


After I had read a lot of tutorials on HLSL and try few examples, I understand the structure of HLSL but don't understand how to use it in P3D v4, I precise that I'm unfamiliar with C++,   but I would like to write a dll to call my HLSL code, someone can help me ? 
Thanks by advance.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now