Yuav Ua Li Cas Rau Nruab Cov Shaders

Cov txheej txheem:

Yuav Ua Li Cas Rau Nruab Cov Shaders
Yuav Ua Li Cas Rau Nruab Cov Shaders

Video: Yuav Ua Li Cas Rau Nruab Cov Shaders

Video: Yuav Ua Li Cas Rau Nruab Cov Shaders
Video: Yuav Nqi Peev Lis Cas Thiaj Lis Zoo Rau Koj Txoj Kev Lag Luam? - By Tayvee lyk 2024, Hlis ntuj nqeg
Anonim

Shader yog qhov kev pab cuam nyob hauv qib qis ntawm kev tsim cov duab thiab yog lub luag haujlwm rau cov kev txiav txim kawg ntawm cov khoom nraaj virtual. Siv cov duab ntxoo, lawv piav qhia lub teeb pom kev ntawm kev cuam tshuam thiab kev xav txog, tsaus nti, tshem tawm thaj chaw, cov teebmeem kev ntxhib los mos, thiab lwm yam.

Yuav ua li cas rau nruab cov shaders
Yuav ua li cas rau nruab cov shaders

Tsim nyog

  • - Is Taws Nem;
  • - cov thawj coj cov cai.

Cov Lus Qhia

Kauj ruam 1

Txhawm rau nruab cov khoob khoob hauv Source SDK, koj yuav tsum nruab Perl thiab DirectX. Rub tawm ActivePerl rau Windows los ntawm lub chaw tsim khoom lub vev xaib https://www.activeperl.com/ thiab nruab nws rau lub hard drive ntawm koj lub computer. Koj tuaj yeem nrhiav qhov tseeb DirectX SDK ntawm https://www.microsoft.com/windows/directx. Nruab txhua software rau lub kaw lus faib txheej txheem ntawm lub hard drive.

Kauj ruam 2

Luam cov executables rau lub mod Source SDK nplaub tshev. Qhov no yog qhov tsim nyog nyob rau hauv kev txiav txim rau lub shader ntaub ntawv yuav tsum muaj rau cov kev pab cuam thaum lub sij hawm muab tso ua ke ntawm lub Source SDK. Nrhiav thiab luam cov ntaub ntawv ntawm perl.exe, perl58.dll, fxc.exe, psa.exe, thiab vsa.exe. Koj tuaj yeem siv daim ntawv tshawb nrhiav. Txhawm rau ua li no, nyem rau ntawm "Nrhiav" khawm nyob rau sab saum toj tab thiab sau cov ntawv thov uas koj xav tau.

Kauj ruam 3

Lub Chaw SDK siv Microsoft DirectX HLS thiab Shader Assembler rau cov shaders kev ua haujlwm. Txhawm rau kom ua haujlwm ruaj khov ntawm shader, siv MHLS feem ntau thiab tsis txhob siv cov sib dhos. Nws muab cov hauv kev zoo rau kev daws cov teeb meem no.

Kauj ruam 4

Yog xav paub cov lus qhia ntxaws ntxiv ntawm kev siv HLSL thiab ntawm kev ua haujlwm shaders hauv kev sib dhos, saib MSDN cov ntaub ntawv ntawm tus tsim tawm xaib. Rau ntau cov ntaub ntawv hais txog kev ua haujlwm nrog Source SDK, mus saib Cov Txheej Txheem Kev Tsim Kho rau Graphics Developers ntawm SDK lub site.

Kauj ruam 5

Nrog kev pab ntawm shaders programmable, koj tuaj yeem yooj yim tsim cov ntawv ntawm ib qho nyuaj. Ua raws li hom shader (muaj peb ntawm lawv), qhov kev xav ntawm lub shader, nws lub peev xwm thiab daim ntawv thov nyob ntawm. Raws li kev xyaum qhia, nws yog qhov nyuaj heev rau kev teeb tsa shaders ntawm lub tshuab ntiag tug, txij li muaj ntau cov haujlwm yuav tsum tau ua. Yog koj ua tsis tiav, hu rau lub chaw computer nrhiav kev pab.

Pom zoo: