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.

Making shaders for FSX?

Featured Replies

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

Will there be doco on this?

  • 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

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! :)

How does the code get compiled into FSX ??

Dont know... maybe FSX just passes the shader code to the GPU for it to compile?

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.

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! :)

>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.

> 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.

  • 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

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.