Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaders #25

Open
1 of 6 tasks
TheParaziT opened this issue Jul 30, 2022 · 1 comment
Open
1 of 6 tasks

Shaders #25

TheParaziT opened this issue Jul 30, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@TheParaziT
Copy link
Collaborator

TheParaziT commented Jul 30, 2022

@TheParaziT TheParaziT added the help wanted Extra attention is needed label Jul 30, 2022
@LVutner
Copy link
Contributor

LVutner commented Aug 13, 2022

Programming language for shaders: HLSL - https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl

  • Shader Model 3.0 = DX9
  • Shader Model 4.0/4.1 = DX10 / DX10.1
  • Shader Model 5.0 = DX11

Other:

Format of X-Ray shaders:

  • .cs - compute shader
  • .gs - geometry shader
  • .vs - vertex shader
  • .ps - pixel shader
  • .s - LUA version of engine blenders. check blender_combine.cpp in engine, and effects_water.s in gamedata to get the basics.

Shaders from gamedata\shaders\r3 are used by DX10 and DX11 renderer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants