microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Home Page:https://walbourn.github.io/directxtk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Point Light and shader extension

MohammadMDSA opened this issue · comments

Hi
Is there any effect or techniques that I can implement point light with in the library? I search whole repo source and couldn't find any.
And also, shader files ".fx"s are so confusing and I could find out where are entrypoints and even how an Effect class create shaders from source/compiled files. Can you guide me so I can extend existing shader files to implemen unavailable features?

The XNA Game Studio "BasicEffect" shaders did not implement point lights, although it's fairly easy to create a point-light shader.

For the basics of writing a custom effect, take a look at this tutorial.

The source for the BasicEffect shaders all came from the XNA Game Studio 4 StockShaders sample.