-
Tutorial 26: Transparency 연습문제Directx 11 with rastertek 2022. 9. 23. 14:38
To Do Exercises
1. Recompile the and run the program. Press escape to quit.
2. Change the value of the blendAmount in the GraphicsRender function to see different amounts of transparency.
1. 다시 컴파일하고 프로그램을 실행합니다. 종료하려면 ESC를 누르십시오.
2. GraphicsRender 함수의 blendAmount 값을 변경하여 다른 투명도를 확인합니다.
graphicsclass.cpp
bool GraphicsClass::Render() { ......................생략...................... blendAmount = 0.3f; ......................생략...................... }
stone01.dds가 DestSource이므로 blendAmout =0.3f는 DestSource의 투명도를 0.3으로 하는 것과 같다.(반대로 dirt01.dds는 1.0f-0.3f = 0.7f가 된다.)
'Directx 11 with rastertek' 카테고리의 다른 글
Tutorial 29: Water 연습문제 (0) 2022.09.27 Tutorial 28: Screen Fades (0) 2022.09.25 Tutorial 25: Texture Translation 연습문제 (0) 2022.09.23 Tutorial 24: Clipping Planes 연습문제 (0) 2022.09.22 Tutorial 23: Fog 연습문제 (1) 2022.09.21