浏览代码

- Fix missing vertex inputs variables for shadow rendering

ShiroSmith 7 年之前
父节点
当前提交
46eeea8a67
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxsl/Dce.hx

+ 1 - 0
hxsl/Dce.hx

@@ -93,6 +93,7 @@ class Dce {
 
 		for( v in used ) {
 			if( v.used ) continue;
+			if( v.v.kind == VarKind.Input) continue;
 			vertex.vars.remove(v.v);
 			fragment.vars.remove(v.v);
 		}