KSP-Conformal-Decals/Distribution/GameData/ConformalDecals/Parts/decal-blank.cfg
drewcassidy e9c8f3dafb Big refactor to enable preview materials
• add shader variants for decal previewing
• start to add code for part icon
• refactor material properties to be serializable
todo:
• fix decal preview scale (need to call UpdateScale on detached state)
• fix texture preview in part icon
• adjust culling per-object when rendering (turns out cull and ztest values are used by unity at the render time, not by the shader itself, so they can be adjusted in material property blocks!)
2020-06-04 00:12:09 -07:00

105 lines
1.9 KiB
INI

// ReStock+ 1.2.0
// 0.625m Radial Attachment Node
PART
{
name = decal-blank
module = Part
author = Andrew Cassidy
MODEL
{
model = ConformalDecals/Assets/decal-blank
scale = 1.0, 1.0, 1.0
}
scale = 1
rescaleFactor = 1
// Attachment
attachRules = 1,1,0,0,1
node_attach = 0.0, 0.0, 0.1, 0.0, 0.0, -1.0
// Tech
TechRequired = specializedConstruction
entryCost = 600
// Info
cost = 75
category = Structural
title = Blank Decal
manufacturer = #autoLOC_501648 // Maxo Construction Toys
description = foo
tags = foo
bulkheadProfiles = srf
// Parameters
mass = 0.015
dragModelType = default
maximum_drag = 0.1
minimum_drag = 0.05
angularDrag = 1.0
crashTolerance = 10
maxTemp = 2000
breakingForce = 350
breakingTorque = 150
MODULE
{
name = ModuleConformalDecalGeneric
decalFront = Decal-Front
decalBack = Decal-Back
useBaseNormal = false
}
MODULE {
name = ModuleB9PartSwitch
SUBTYPE {
name = tortilla
MODULE {
IDENTIFIER {
name = ModuleConformalDecalGeneric
}
DATA {
shader = ConformalDecals/Feature/Bumped
TEXTURE {
name = _Decal
textureUrl = ConformalDecals/Assets/Tortilla-diffuse
isMain = true
}
TEXTURE
{
name = _DecalBumpMap
textureUrl = ConformalDecals/Assets/Tortilla-normal
isNormalMap = true
}
}
}
}
SUBTYPE {
name = Danger
MODULE {
IDENTIFIER {
name = ModuleConformalDecalGeneric
}
DATA {
shader = ConformalDecals/Paint/Diffuse
useBaseNormal = true
TEXTURE {
name = _Decal
textureUrl = ConformalDecals/Assets/Sign-HighVoltage-2
isMain = true
}
}
}
}
}
}