Jump to content
Sign in to follow this  
bokdany

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

Hi,

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

LORBY-SI

Share this post


Link to post
Quote

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

HI,

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
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...