Material parsing work
This commit is contained in:
parent
4c3468b6f4
commit
a388b54a33
|
@ -2103,49 +2103,21 @@ class ArmoryExporter(bpy.types.Operator, ExportHelper):
|
|||
|
||||
# Parse nodes
|
||||
out_node = None
|
||||
for n in material.node_tree.nodes:
|
||||
tree = material.node_tree
|
||||
for n in tree.nodes:
|
||||
if n.type == 'OUTPUT_MATERIAL':
|
||||
out_node = n
|
||||
break
|
||||
|
||||
normalMapping = False
|
||||
|
||||
ops = Object()
|
||||
ops.normal_mapping = False
|
||||
# Output node is linked
|
||||
if out_node != None and out_node.inputs[0].is_linked:
|
||||
tree = material.node_tree
|
||||
surface_node = self.findNodeByLink(tree, out_node, out_node.inputs[0])
|
||||
if surface_node.type == 'BSDF_DIFFUSE':
|
||||
const3.bool = True # Enable lighting
|
||||
# Color
|
||||
if surface_node.inputs[0].is_linked:
|
||||
color_node = self.findNodeByLink(tree, surface_node, surface_node.inputs[0])
|
||||
if color_node.type == 'TEX_IMAGE': # Bind texture
|
||||
tex = Object()
|
||||
tex.id = "stex"
|
||||
tex.name = color_node.image.name.split('.', 1)[0] # Remove extension
|
||||
c.bind_textures.append(tex)
|
||||
else:
|
||||
col = surface_node.inputs[0].default_value
|
||||
const1.vec4 = [col[0], col[1], col[2], col[3]]
|
||||
# Roughness
|
||||
const2.float = surface_node.inputs[1].default_value
|
||||
# Normal
|
||||
if surface_node.inputs[2].is_linked:
|
||||
normal_node = self.findNodeByLink(tree, surface_node, surface_node.inputs[2])
|
||||
if normal_node.inputs[1].is_linked:
|
||||
color_node = self.findNodeByLink(tree, normal_node, normal_node.inputs[1])
|
||||
if color_node.type == 'TEX_IMAGE':
|
||||
normalMapping = True
|
||||
defs.append('_NormalMapping')
|
||||
tex = Object()
|
||||
tex.id = "normalMap"
|
||||
tex.name = color_node.image.name.split('.', 1)[0]
|
||||
c.bind_textures.append(tex)
|
||||
self.parse_material_surface(c, defs, ops, tree, surface_node)
|
||||
|
||||
o.contexts.append(c)
|
||||
|
||||
if material.alpha_test == True:
|
||||
defs.append('_AlphaTest')
|
||||
|
||||
# Material users
|
||||
mat_users = []
|
||||
for ob in bpy.data.objects:
|
||||
|
@ -2174,8 +2146,8 @@ class ArmoryExporter(bpy.types.Operator, ExportHelper):
|
|||
defs.append('_Billboard')
|
||||
|
||||
# Whether objects should export tangent data
|
||||
if material.export_tangents != normalMapping:
|
||||
material.export_tangents = normalMapping
|
||||
if material.export_tangents != ops.normal_mapping:
|
||||
material.export_tangents = ops.normal_mapping
|
||||
# Delete geometry caches
|
||||
for ob in mat_users:
|
||||
ob.geometry_cached = False
|
||||
|
@ -2194,6 +2166,48 @@ class ArmoryExporter(bpy.types.Operator, ExportHelper):
|
|||
else:
|
||||
o.shader = material.custom_shader_name
|
||||
|
||||
def parse_material_surface(self, c, defs, ops, tree, node):
|
||||
if node.type == 'BSDF_DIFFUSE': # Diffuse shader
|
||||
c.bind_constants[2].bool = True # Enable lighting
|
||||
# Color
|
||||
if node.inputs[0].is_linked:
|
||||
color_node = self.findNodeByLink(tree, node, node.inputs[0])
|
||||
self.parse_material_color(c, color_node, 'stex')
|
||||
# Take node color
|
||||
else:
|
||||
col = node.inputs[0].default_value
|
||||
c.bind_constants[0].vec4 = [col[0], col[1], col[2], col[3]]
|
||||
# Roughness
|
||||
c.bind_constants[1].float = node.inputs[1].default_value
|
||||
# Normal
|
||||
if node.inputs[2].is_linked:
|
||||
normal_node = self.findNodeByLink(tree, node, node.inputs[2])
|
||||
self.parse_material_normal(c, defs, ops, tree, normal_node)
|
||||
elif node.type == 'BSDF_TRANSPARENT':
|
||||
defs.append('_AlphaTest')
|
||||
elif node.type == 'MIX_SHADER':
|
||||
if node.inputs[1].is_linked:
|
||||
surface1_node = self.findNodeByLink(tree, node, node.inputs[1])
|
||||
self.parse_material_surface(c, defs, ops, tree, surface1_node)
|
||||
if node.inputs[2].is_linked:
|
||||
surface2_node = self.findNodeByLink(tree, node, node.inputs[2])
|
||||
self.parse_material_surface(c, defs, ops, tree, surface2_node)
|
||||
|
||||
def parse_material_color(self, c, color_node, textureId):
|
||||
# Bind texture
|
||||
if color_node.type == 'TEX_IMAGE':
|
||||
tex = Object()
|
||||
tex.id = textureId
|
||||
tex.name = color_node.image.name.split('.', 1)[0] # Remove extension
|
||||
c.bind_textures.append(tex)
|
||||
|
||||
def parse_material_normal(self, c, defs, ops, tree, normal_node):
|
||||
if normal_node.inputs[1].is_linked:
|
||||
ops.normal_mapping = True
|
||||
defs.append('_NormalMapping')
|
||||
color_node = self.findNodeByLink(tree, normal_node, normal_node.inputs[1])
|
||||
self.parse_material_color(c, color_node, 'normalMap')
|
||||
|
||||
def menu_func(self, context):
|
||||
self.layout.operator(ArmoryExporter.bl_idname, text = "Armory (.json)")
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import subprocess
|
|||
import atexit
|
||||
import webbrowser
|
||||
import write_data
|
||||
import nodes
|
||||
import nodes_logic
|
||||
import nodes_pipeline
|
||||
from armory import ArmoryExporter
|
||||
|
||||
|
@ -161,7 +161,7 @@ def buildProject(self, build_type=0):
|
|||
#area.type = old_type
|
||||
|
||||
# Auto-build nodes # TODO: only if needed
|
||||
nodes.buildNodeTrees()
|
||||
nodes_logic.buildNodeTrees()
|
||||
nodes_pipeline.buildNodeTrees()
|
||||
|
||||
# Set dir
|
||||
|
|
|
@ -26,7 +26,6 @@ def initProperties():
|
|||
bpy.types.Camera.pipeline_pass = bpy.props.StringProperty(name="Pipeline Pass", default="forward")
|
||||
# For material
|
||||
bpy.types.Material.receive_shadow = bpy.props.BoolProperty(name="Receive Shadow", default=True)
|
||||
bpy.types.Material.alpha_test = bpy.props.BoolProperty(name="Alpha Test", default=False)
|
||||
bpy.types.Material.custom_shader = bpy.props.BoolProperty(name="Custom Shader", default=False)
|
||||
bpy.types.Material.custom_shader_name = bpy.props.StringProperty(name="Name", default="")
|
||||
bpy.types.Material.export_tangents = bpy.props.BoolProperty(name="Export Tangents", default=False)
|
||||
|
@ -89,7 +88,6 @@ class MatsPropsPanel(bpy.types.Panel):
|
|||
mat = bpy.context.material
|
||||
|
||||
layout.prop(mat, 'receive_shadow')
|
||||
layout.prop(mat, 'alpha_test')
|
||||
layout.prop(mat, 'custom_shader')
|
||||
if mat.custom_shader:
|
||||
layout.prop(mat, 'custom_shader_name')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import project
|
||||
import nodes
|
||||
import nodes_logic
|
||||
import nodes_pipeline
|
||||
import armory
|
||||
import traits_animation
|
||||
|
@ -9,7 +9,7 @@ import props
|
|||
|
||||
def register():
|
||||
project.register()
|
||||
nodes.register()
|
||||
nodes_logic.register()
|
||||
nodes_pipeline.register()
|
||||
armory.register()
|
||||
traits_animation.register()
|
||||
|
@ -19,7 +19,7 @@ def register():
|
|||
|
||||
def unregister():
|
||||
project.unregister()
|
||||
nodes.unregister()
|
||||
nodes_logic.unregister()
|
||||
nodes_pipeline.unregister()
|
||||
armory.unregister()
|
||||
traits_animation.unregister()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define _AlphaTest
|
||||
#version 450
|
||||
#define _AlphaTest
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define _AlphaTest
|
||||
#version 450
|
||||
#define _AlphaTest
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
|
@ -5,7 +6,6 @@
|
|||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
|
@ -5,7 +6,6 @@
|
|||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Instancing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _NormalMapping
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Billboard
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _NormalMapping
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Skinning
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#version 450
|
||||
#define _AlphaTest
|
||||
#define _Instancing
|
||||
#define _Texturing
|
||||
#define _VCols
|
||||
#version 450
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue