Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

write a shader for P3D v4

Featured Replies

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.

  • Commercial Member

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

  • Author
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 ?

 

  • Author

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.