alpha testing enabled
This commit is contained in:
parent
6d9f6a3e28
commit
3c53eb2f31
2 changed files with 10 additions and 7 deletions
|
@ -36,11 +36,14 @@ function setCam(){
|
|||
global.turn = ARMY.US;
|
||||
|
||||
function drawModels(){
|
||||
gpu_set_cullmode(cull_counterclockwise);
|
||||
//gpu_set_cullmode(cull_counterclockwise);
|
||||
gpu_set_ztestenable(true);
|
||||
gpu_set_alphatestenable(true);
|
||||
gpu_set_alphatestref(128);
|
||||
for(var i = 0; i < array_length(models);i++){
|
||||
models[i].draw();
|
||||
}
|
||||
gpu_set_alphatestenable(false);
|
||||
gpu_set_cullmode(cull_noculling);
|
||||
gpu_set_ztestenable(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue