This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Fable.Import | |
open System | |
open System.Text.RegularExpressions | |
open Fable.Core | |
open Fable.Import.JS | |
type [<AllowNullLiteral>] Error = | |
abstract stack: string option with get, set | |
and [<AllowNullLiteral>] ErrorConstructor = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace tags | |
{ | |
// TODO: Add support for "has tag" queries. Preferably through a big-ass bit vector. | |
typedef unsigned Tag; | |
struct TagInstance | |
{ | |
Entity entity; | |
MultiInstanceComponent::InstanceId component; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version = 1 | |
group = "Output" | |
display_name = "Unlit Base" | |
output_node = true | |
render_configs = ["core/stingray_renderer/renderer"] | |
inputs = { | |
"aee6e47b-be7b-4d67-a123-2ab5d660b94e" = { | |
name = "vertex_offset" | |
display_name = "Position offset" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pass_macros = [ | |
{ if: "defined(HAS_LIGHTMAP_BAKED_DIFFUSE_LIGHTING) || defined(MATERIAL_TRANSFER)" then: [ | |
{ define: ["NEEDS_LIGHTMAP_UV"] } | |
] } | |
{ if: "(defined(HAS_NORMAL) && !defined(WORLD_SPACE_NORMAL)) || defined(TESSELLATION) && defined(HAS_VECTOR_DISPLACEMENT)" then: [ | |
{ define: ["NEEDS_TANGENT_SPACE"] } | |
] } | |
{ if: "!defined(HAS_NORMAL) || defined(TESSELLATION) && defined(HAS_HEIGHT_DISPLACEMENT)" then: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CONCAT_(prefix, name) prefix ## name | |
#define CONCAT(prefix, name) CONCAT_(prefix, name) | |
#define TEXTURE_NAME(name) CONCAT(TEXTURE_PREFIX, name) | |
#define SAMPLER_NAME(name) CONCAT(SAMPLER_PREFIX, name) |