forked from LeenkxTeam/LNXSDK
Group Nodes, Shaders, Textures, Displacement
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
from enum import IntEnum, unique
|
||||
from typing import List, Set, Tuple, Union, Optional
|
||||
from typing import Dict, List, Set, Tuple, Union, Optional
|
||||
|
||||
import bpy
|
||||
|
||||
@ -69,6 +69,9 @@ class ParserState:
|
||||
|
||||
# Cache for computing nodes only once
|
||||
self.parsed: Set[str] = set()
|
||||
self.parsing: Set[str] = set()
|
||||
self.node_uids: Dict[tuple, str] = {}
|
||||
self.node_uids_used: Set[str] = set()
|
||||
|
||||
# What to parse from the node tree
|
||||
self.parse_surface = True
|
||||
@ -90,6 +93,11 @@ class ParserState:
|
||||
dx/dy offsets (if required by the parser pass).
|
||||
"""
|
||||
|
||||
self.dxdy_scale = '1.0'
|
||||
"""Scale factor applied to screen-space dx/dy offsets, matching
|
||||
Blender's bump filter_width (offset = dFdx(v) * filter_width).
|
||||
"""
|
||||
|
||||
# Shader output values
|
||||
self.out_basecol: vec3str = 'vec3(0.8)'
|
||||
self.out_roughness: floatstr = '0.0'
|
||||
|
||||
Reference in New Issue
Block a user