Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9

This commit is contained in:
2026-09-04 10:46:13 -07:00
parent c915312901
commit 0460b9d587
482 changed files with 27797 additions and 3226 deletions

View File

@ -1,3 +1,5 @@
import os
import bpy
from typing import List, Dict, Optional, Any
import lnx.utils
@ -11,6 +13,14 @@ def parse_context(
vert: Optional[List[str]] = None,
frag: Optional[List[str]] = None,
):
if c["name"] == "compositor_pass":
wrd = bpy.data.worlds['Lnx']
rpdat = wrd.lnx_rplist[wrd.lnx_rplist_index]
if rpdat.lnx_custom_compositor:
custom_path = lnx.utils.get_fp().replace("\\", "/") + "/Compositor"
c["vertex_shader"] = custom_path + "/compositor_pass.vert.glsl"
c["fragment_shader"] = custom_path + "/compositor_pass.frag.glsl"
con = {
"name": c["name"],
"constants": [],
@ -233,6 +243,8 @@ def parse_shader(
const = {"type": ctype, "name": cid}
con["constants"].append(const)
#print(f"file: {c.get('vertex_shader', 'Unknown')} | Constant: {cid} ({ctype})")
check_link(c, defs, cid, const)