Compare commits
377 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f15f7ff59f | |||
| 0d0279a1f8 | |||
| bb8a6e5c8d | |||
| beecbffdc3 | |||
| 06f07c2903 | |||
| 164da0f87a | |||
| a250a23259 | |||
| 50f6a01f83 | |||
| aedc619009 | |||
| a226ff8762 | |||
| a1cee0f0bf | |||
| bb84ad0f79 | |||
| 0de380ad3a | |||
| 4b11725226 | |||
| 971ab7b8e7 | |||
| b57ce2bd56 | |||
| 876a728b41 | |||
| b411539717 | |||
| 4cb5574a2e | |||
| 1aceab3783 | |||
| c583b6a1a7 | |||
| 3c3b47f5b4 | |||
| 36bd398136 | |||
| c820e87d4a | |||
| f00ae7fb21 | |||
| 18e3d51914 | |||
| 691d9d9b88 | |||
| 81865bd97e | |||
| 80e0b0b0e5 | |||
| da3a54d184 | |||
| 1925fe5724 | |||
| f1763840c9 | |||
| bbeab83b29 | |||
| cb8ba2d757 | |||
| 1679458094 | |||
| c9992ef7d0 | |||
| 02dde50071 | |||
| 854d0147dd | |||
| 59858ecb27 | |||
| 269f1fc8c1 | |||
| 4330eb5e4a | |||
| db17c80e0a | |||
| 62b3f7c9c2 | |||
| 96e5e20e66 | |||
| 054aa18e31 | |||
| b6fe228b85 | |||
| c703064add | |||
| 4be7e2ad46 | |||
| 5260efc7b8 | |||
| 44d636520b | |||
| c5934e0dfe | |||
| 571c802d49 | |||
| d098c6cee7 | |||
| 31e53d5efa | |||
| ca32d0d825 | |||
| 5b4dbfa121 | |||
| 602fb44a23 | |||
| 5845bc3fca | |||
| f331191e3d | |||
| c0c2da34d7 | |||
| ee166bafed | |||
| f6085c7479 | |||
| f714afc180 | |||
| f6065c4463 | |||
| 1824715626 | |||
| b59008182f | |||
| e99c4abe5e | |||
| f9ba789af3 | |||
| 6f0a556af8 | |||
| bcb38dc2ca | |||
| 3a33d6ff84 | |||
| cb0518d75a | |||
| 31ae464d93 | |||
| 8ff12d079c | |||
| 1969854ed0 | |||
| 4c05f8a222 | |||
| 6313c8520c | |||
| f1819ee35c | |||
| 2563409e6f | |||
| f64eead2d7 | |||
| 67b0e0410c | |||
| 6a6e7195f5 | |||
| b04e1381dc | |||
| 47bff456e0 | |||
| 7de56304c8 | |||
| 843a04604d | |||
| 018e751bf6 | |||
| 4457bcf4a7 | |||
| bf147ba13a | |||
| 9674f276d3 | |||
| 71110c9f29 | |||
| 54e544a0f2 | |||
| f3f25836e2 | |||
| 1a51752ca4 | |||
| 8c6dbf2e30 | |||
| d901c11570 | |||
| b208b7066b | |||
| 83ceb31967 | |||
| 049450e31b | |||
| e4fced44a9 | |||
| 19c65bec33 | |||
| 0db0fb24c9 | |||
| 704d42869d | |||
| 236a5a2f6f | |||
| 8680aba897 | |||
| 8dce3c0fb7 | |||
| f236338311 | |||
| 0b1ac3d0fe | |||
| ec4ccaeba5 | |||
| 214ae3c440 | |||
| ef5e98efaa | |||
| ea489fbf2a | |||
| 75d197cb84 | |||
| 6b5ce8c6e2 | |||
| db6a02e20f | |||
| 0a0c856a64 | |||
| bd7a681700 | |||
| c4e6d013c1 | |||
| d17d93c8a5 | |||
| 6caffdc23f | |||
| 99b011df8b | |||
| c02faf51a0 | |||
| 50f87c8bfb | |||
| edb103f8e7 | |||
| 8fd0af3f39 | |||
| 4db3c6ca71 | |||
| aa4ecab271 | |||
| 3356013858 | |||
| 8003055ba6 | |||
| c112274666 | |||
| f80f7cdd33 | |||
| b76d5d34ea | |||
| 9e3c413c91 | |||
| fd6158e1a9 | |||
| 932de300e4 | |||
| a3fa8ff9f0 | |||
| 259c419c36 | |||
| d7696c4765 | |||
| 89f25516fc | |||
| fd268f4e15 | |||
| 5679d86683 | |||
| 6252c111b4 | |||
| ab4195ab6c | |||
| 1d2e2e5575 | |||
| 7de0010772 | |||
| ebe0b9c8c9 | |||
| fa3b2af0ca | |||
| b446790438 | |||
| 7ddf98abaa | |||
| fb84aa2c4b | |||
| 023c4f4726 | |||
| ba1a246a90 | |||
| a664e27772 | |||
| 75b8e0a0f2 | |||
| fc38aff46b | |||
| 1ca31224e2 | |||
| c89479b5e7 | |||
| a691f15e1f | |||
| f0f1863124 | |||
| 0823e00dfe | |||
| 43631ceb93 | |||
| 4bd383f412 | |||
| caa426767c | |||
| 7112160de5 | |||
| 419ca4e630 | |||
| 01e904e702 | |||
| 9e1c1ecb9a | |||
| cd5db384a4 | |||
| d586f828b2 | |||
| f073e07de7 | |||
| 3f278b603d | |||
| 6d0f2b9083 | |||
| 3060a2664d | |||
| 698cfd0c0a | |||
| e6bffde301 | |||
| 1b0e57408c | |||
| 442135047f | |||
| ef2dbb7818 | |||
| 2d2d45f568 | |||
| 617e25eb4c | |||
| 24874376c3 | |||
| 0d0340e11a | |||
| 2252cd73f9 | |||
| 6deb64e587 | |||
| 0e768694b5 | |||
| dca6736a6f | |||
| 6f727aa483 | |||
| eec6957b08 | |||
| 6da5c704b1 | |||
| f10c6b4ff6 | |||
| 336a3bd484 | |||
| 6adb489276 | |||
| 12f34f33b3 | |||
| 4992d21747 | |||
| 0c1d797511 | |||
| bd3f2b3019 | |||
| 4d8cc9aef7 | |||
| 6ab300025b | |||
| f7c17d96ce | |||
| f5ac18915a | |||
| ed92489a60 | |||
| 946d69a3ef | |||
| 10cdbc8fbc | |||
| d715c0c0dd | |||
| 7bbdd25a9e | |||
| 566a653c0a | |||
| 464523f318 | |||
| e68b54159d | |||
| 0d4ac16d18 | |||
| 9d66d5f6a7 | |||
| 717d02f073 | |||
| 786f057971 | |||
| c1a83662d9 | |||
| e62ccd55ba | |||
| 1f9888b88c | |||
| 0b3232d94b | |||
| 6c7529f6b3 | |||
| bf9204f146 | |||
| 4043e35b10 | |||
| add539392a | |||
| 7e4afbc4ff | |||
| c39b201d3a | |||
| 6fdb30b6af | |||
| cc399b51f0 | |||
| c5ce32d66d | |||
| 20969b5d3d | |||
| fee0a458d0 | |||
| af9e710763 | |||
| 23b2094dd4 | |||
| 23c51694c7 | |||
| f59fe297ea | |||
| 21ec0f103e | |||
| 3ed2e010fa | |||
| 096d6297fe | |||
| 03eb39afe6 | |||
| b63753b4d5 | |||
| e9f72dbbbf | |||
| 624ab4b8dd | |||
| a4607385fd | |||
| 0f2e579674 | |||
| 463e981d39 | |||
| e5286510d1 | |||
| 66e8560b51 | |||
| 3877f100c3 | |||
| d94e777feb | |||
| 9b891d0c55 | |||
| 3ab04598da | |||
| f7808dc7ca | |||
| 99f1ac1cc5 | |||
| 3973452ec3 | |||
| 29a8abd996 | |||
| 7de3632c7e | |||
| fa381c5493 | |||
| a293be2121 | |||
| e19b10f790 | |||
| 05790ab9a1 | |||
| 5e469a0ae3 | |||
| 4c205be617 | |||
| 96dbd3a937 | |||
| 265cc13971 | |||
| 4ec3e6aed9 | |||
| a082d52543 | |||
| 1a0c12191d | |||
| 82cade649b | |||
| 72ab8a5363 | |||
| 8998eb2330 | |||
| 000e2c96a5 | |||
| 7b7ba7d73e | |||
| 826c0206cb | |||
| a2371dab83 | |||
| 8dd915ec01 | |||
| 45e86f7591 | |||
| de70ac3e36 | |||
| e95e79cabf | |||
| 7335cd39ca | |||
| 65ab9cac50 | |||
| ae8d6a6000 | |||
| 8b2a8d22b3 | |||
| 8a7cb34e93 | |||
| 967b6585e1 | |||
| 1c4ebe9ab6 | |||
| d65e922cca | |||
| d69bdbe1ef | |||
| 3975efc9e4 | |||
| fb22d1dd32 | |||
| 9a9996bd51 | |||
| 140fae3fa1 | |||
| 4c372c0b76 | |||
| 97586fe936 | |||
| 3ed30b81d6 | |||
| 13102254f9 | |||
| e0c362856e | |||
| a4c1bf104c | |||
| 2f313c6b43 | |||
| dc1360422f | |||
| 8d0018c42d | |||
| cb6179dbb7 | |||
| aff2c154a9 | |||
| c6664c7d1e | |||
| 3bf54bac85 | |||
| c0cc89201e | |||
| 16fab80f86 | |||
| 08ebd99ed4 | |||
| da389eea03 | |||
| 8347e15413 | |||
| 8ea5dcb110 | |||
| c9989e0aff | |||
| 3f73d63edb | |||
| 05b358f44e | |||
| 4a068a3b86 | |||
| 87e026bd4f | |||
| 0679aebfac | |||
| 310140e91b | |||
| 2acad9963f | |||
| 8198b73297 | |||
| 38cd840a66 | |||
| aa2a131956 | |||
| 4f9df89fd3 | |||
| 94822b57d9 | |||
| a388df2f74 | |||
| 2c6a70b744 | |||
| 566f8f5810 | |||
| 21cbfec533 | |||
| 4279b3f482 | |||
| 4c212400d8 | |||
| cf0aeb79bf | |||
| 4fe91d57b7 | |||
| 760d586923 | |||
| 5e239f5d87 | |||
| 70d0c0ea8a | |||
| 1fccefb07f | |||
| 59fb6eb875 | |||
| bdbb16d759 | |||
| 0f18fd9610 | |||
| 2a29abcc39 | |||
| d322015e6e | |||
| 4f954c2eb4 | |||
| d0e509a8fc | |||
| bc1a5b99ac | |||
| 47c0797028 | |||
| 31f6e94da2 | |||
| 15e3cc0e0b | |||
| 810c1fb574 | |||
| cac33d8f72 | |||
| 666aeca4ea | |||
| 596943c913 | |||
| fd5835e3c8 | |||
| 965352c3f4 | |||
| 4a3092d0e8 | |||
| 39491663ee | |||
| 8ac2d7069d | |||
| 3c60f2691d | |||
| c83cc35b93 | |||
| 4508f5b77f | |||
| ed5450d7e6 | |||
| c987acb709 | |||
| 89b78e598e | |||
| c496f2a9db | |||
| 0688e9c6c3 | |||
| 34d74477e4 | |||
| 1798bf003b | |||
| 07f58558e3 | |||
| 96457a0adc | |||
| 9c55518744 | |||
| f35c666ea8 | |||
| 0da02b99cc | |||
| 7e6b236661 | |||
| 8a870a07ae | |||
| afeaaee376 | |||
| 973af724f4 | |||
| 5cab22e20d | |||
| af39369661 | |||
| 3bdd2e4e5b | |||
| 6cefab801f | |||
| 84628b8f6b | |||
| 68e3b279fa | |||
| def3698423 |
@@ -0,0 +1,19 @@
|
||||
name: Build Linux
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
# Game
|
||||
game-linux:
|
||||
name: Game (Linux, Release x64)
|
||||
runs-on: "ubuntu-20.04"
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs version
|
||||
git lfs pull
|
||||
- name: Build
|
||||
run: |
|
||||
./Development/Scripts/Linux/CallBuildTool.sh -build -log -arch=x64 -platform=Linux -configuration=Release -buildtargets=FlaxGame
|
||||
@@ -0,0 +1,34 @@
|
||||
name: Build Windows
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
# Editor
|
||||
editor-windows:
|
||||
name: Editor (Windows, Development x64)
|
||||
runs-on: "windows-latest"
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs version
|
||||
git lfs pull
|
||||
- name: Build
|
||||
run: |
|
||||
.\Development\Scripts\Windows\CallBuildTool.bat -build -log -arch=x64 -platform=Windows -configuration=Development -buildtargets=FlaxEditor
|
||||
|
||||
# Game
|
||||
game-windows:
|
||||
name: Game (Windows, Release x64)
|
||||
runs-on: "windows-latest"
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs version
|
||||
git lfs pull
|
||||
- name: Build
|
||||
run: |
|
||||
.\Development\Scripts\Windows\CallBuildTool.bat -build -log -arch=x64 -platform=Windows -configuration=Release -buildtargets=FlaxGame
|
||||
@@ -1,3 +1,4 @@
|
||||
# Redirect to our own Git LFS server
|
||||
[lfs]
|
||||
url="https://gitlab.flaxengine.com/flax/flaxengine.git/info/lfs"
|
||||
locksverify = false
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
# How to contribute to the FlaxEngine
|
||||
|
||||
For any questions, suggestions or help join our discord!
|
||||
|
||||
<a href="https://flaxengine.com/discord"><img src="https://discordapp.com/api/guilds/437989205315158016/widget.png"/></a>
|
||||
|
||||
Want to see whats planned for Flax?
|
||||
|
||||
Go check out our [Trello](https://trello.com/b/NQjLXRCP/flax-roadmap).
|
||||
|
||||
## **Found a bug?**
|
||||
|
||||
* Avoid opening any new issues without having checked if your problem has already been reported. If there are no currently open issues that fit your problem's description, feel free to [add it](https://github.com/FlaxEngine/FlaxEngine/issues/new).
|
||||
|
||||
* When writing an issue make sure to include a clear title and description as well as having filled out all the necessary information, depending on the severity of the issue also include the necessary log files and minidump.
|
||||
|
||||
* Try to following the given template when writing a new issue if possible.
|
||||
|
||||
## **Want to contribute?**
|
||||
|
||||
* Fork the FlaxEngine, create a new branch and push your changes there. Then, create a pull request.
|
||||
|
||||
* When creating a PR for fixing an issue/bug make sure to describe as to what led to the fix for better understanding, for small and obvious fixes this is not really needed.
|
||||
However make sure to mention the relevant issue where it was first reported if possible.
|
||||
|
||||
* For feature PR's the first thing you should evaluate is the value of your contribution, as in, what would it bring to this engine? Is it really required?
|
||||
If its a small change you could preferably suggest it to us on our discord, else feel free to open up a PR for it.
|
||||
|
||||
* Ensure when creating a PR that your contribution is well explained with a adequate description and title.
|
||||
|
||||
* Generally, good code quality is expected, make sure your contribution works as intended and is appropriately commented where necessary.
|
||||
|
||||
|
||||
Thank you for taking interest in contributing to Flax!
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -114,8 +114,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Input macro specified by the material: DECAL_BLEND_MODE
|
||||
@@ -160,12 +159,9 @@ void PS_Decal(
|
||||
float3 positionWS = positionHS.xyz / positionHS.w;
|
||||
float3 positionOS = mul(float4(positionWS, 1), InvWorld).xyz;
|
||||
|
||||
// Clip content outside the decal
|
||||
clip(0.5 - abs(positionOS.xyz));
|
||||
|
||||
// By default, map textures using the vectors perpendicular to the projection direction
|
||||
float2 decalUVs = positionOS.xz + 0.5f;
|
||||
|
||||
|
||||
// Setup material input
|
||||
MaterialInput materialInput = (MaterialInput)0;
|
||||
materialInput.WorldPosition = positionWS;
|
||||
|
||||
@@ -197,8 +197,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Vertex Shader function for GUI materials rendering
|
||||
|
||||
@@ -330,8 +330,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Calculates the transform matrix from mesh tangent space to local space
|
||||
@@ -834,7 +833,7 @@ float4 PS_Distortion(PixelInput input) : SV_Target0
|
||||
// Scale up for better precision in low/subtle refractions at the expense of artefacts at higher refraction
|
||||
distortion *= 4.0f;
|
||||
|
||||
// Store positive and negative offsets separately
|
||||
// Use separate storage for positive and negative offsets
|
||||
float2 addOffset = max(distortion, 0);
|
||||
float2 subOffset = abs(min(distortion, 0));
|
||||
return float4(addOffset.x, addOffset.y, subOffset.x, subOffset.y);
|
||||
|
||||
@@ -134,8 +134,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Pixel Shader function for PostFx materials rendering
|
||||
|
||||
@@ -340,8 +340,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Calculates the transform matrix from mesh tangent space to local space
|
||||
@@ -500,7 +499,7 @@ float3x4 GetBoneMatrix(int index)
|
||||
}
|
||||
|
||||
// Calculates the transposed transform matrix for the given vertex (uses blending)
|
||||
float3x4 CalcBoneMatrix(ModelInput_Skinned input)
|
||||
float3x4 GetBoneMatrix(ModelInput_Skinned input)
|
||||
{
|
||||
float3x4 boneMatrix = input.BlendWeights.x * GetBoneMatrix(input.BlendIndices.x);
|
||||
boneMatrix += input.BlendWeights.y * GetBoneMatrix(input.BlendIndices.y);
|
||||
@@ -549,7 +548,7 @@ VertexOutput VS_Skinned(ModelInput_Skinned input)
|
||||
|
||||
// Perform skinning
|
||||
SkinningData data;
|
||||
data.BlendMatrix = CalcBoneMatrix(input);
|
||||
data.BlendMatrix = GetBoneMatrix(input);
|
||||
float3 position = SkinPosition(input, data);
|
||||
float3x3 tangentToLocal = SkinTangents(input, data);
|
||||
|
||||
@@ -808,7 +807,6 @@ TessalationDSToPS DS(TessalationPatch constantData, float3 barycentricCoords : S
|
||||
#define COPY(thing) output.thing = input[0].thing
|
||||
INTERPOLATE(Position);
|
||||
#if MATERIAL_TESSELLATION == MATERIAL_TESSELLATION_PN
|
||||
// Precompute squares and squares * 3
|
||||
float UU = U * U;
|
||||
float VV = V * V;
|
||||
float WW = W * W;
|
||||
|
||||
@@ -337,8 +337,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Calculates the transform matrix from mesh tangent space to local space
|
||||
@@ -474,7 +473,7 @@ float3x4 GetBoneMatrix(int index)
|
||||
}
|
||||
|
||||
// Calculates the transposed transform matrix for the given vertex (uses blending)
|
||||
float3x4 CalcBoneMatrix(ModelInput_Skinned input)
|
||||
float3x4 GetBoneMatrix(ModelInput_Skinned input)
|
||||
{
|
||||
float3x4 boneMatrix = input.BlendWeights.x * GetBoneMatrix(input.BlendIndices.x);
|
||||
boneMatrix += input.BlendWeights.y * GetBoneMatrix(input.BlendIndices.y);
|
||||
@@ -521,7 +520,7 @@ VertexOutput VS_Skinned(ModelInput_Skinned input)
|
||||
|
||||
// Perform skinning
|
||||
SkinningData data;
|
||||
data.BlendMatrix = CalcBoneMatrix(input);
|
||||
data.BlendMatrix = GetBoneMatrix(input);
|
||||
float3 position = SkinPosition(input, data);
|
||||
half3x3 tangentToLocal = SkinTangents(input, data);
|
||||
|
||||
@@ -755,7 +754,6 @@ TessalationDSToPS DS(TessalationPatch constantData, float3 barycentricCoords : S
|
||||
#define COPY(thing) output.thing = input[0].thing
|
||||
INTERPOLATE(Position);
|
||||
#if MATERIAL_TESSELLATION == MATERIAL_TESSELLATION_PN
|
||||
// Precompute squares and squares * 3
|
||||
float UU = U * U;
|
||||
float VV = V * V;
|
||||
float WW = W * W;
|
||||
@@ -977,8 +975,8 @@ float4 PS_Distortion(PixelInput input) : SV_Target0
|
||||
|
||||
// Scale up for better precision in low/subtle refractions at the expense of artefacts at higher refraction
|
||||
distortion *= 4.0f;
|
||||
|
||||
// Store positive and negative offsets separately
|
||||
|
||||
// Use separate storage for positive and negative offsets
|
||||
float2 addOffset = max(distortion, 0);
|
||||
float2 subOffset = abs(min(distortion, 0));
|
||||
return float4(addOffset.x, addOffset.y, subOffset.x, subOffset.y);
|
||||
|
||||
@@ -234,8 +234,7 @@ Material GetMaterialPS(MaterialInput input)
|
||||
@4
|
||||
}
|
||||
|
||||
// Programmatically set the line number after all the material inputs which have a variable number of line endings
|
||||
// This allows shader error line numbers after this point to be the same regardless of which material is being compiled
|
||||
// Fix line for errors/warnings for shader code from template
|
||||
#line 1000
|
||||
|
||||
// Calculates LOD value (with fractional part for blending)
|
||||
@@ -595,7 +594,6 @@ TessalationDSToPS DS(TessalationPatch constantData, float3 barycentricCoords : S
|
||||
#define COPY(thing) output.thing = input[0].thing
|
||||
INTERPOLATE(Position);
|
||||
#if MATERIAL_TESSELLATION == MATERIAL_TESSELLATION_PN
|
||||
// Precompute squares and squares * 3
|
||||
float UU = U * U;
|
||||
float VV = V * V;
|
||||
float WW = W * W;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Regular → Executable
+6
@@ -3,6 +3,12 @@
|
||||
|
||||
set -e
|
||||
|
||||
testfilesize=$(wc -c < 'Source/Logo.png')
|
||||
if [ $testfilesize -le 1000 ]; then
|
||||
echo "CallBuildTool ERROR: Repository was not cloned using Git LFS" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Compile the build tool.
|
||||
xbuild /nologo /verbosity:quiet "Source/Tools/Flax.Build/Flax.Build.csproj" /property:Configuration=Release /property:Platform=AnyCPU /target:Build
|
||||
|
||||
|
||||
@@ -2,93 +2,55 @@
|
||||
|
||||
rem Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
rem Make sure the batch file exists in the root folder.
|
||||
if not exist "Development\Scripts\Windows\GetMSBuildPath.bat" goto Error_BatchFileInWrongLocation
|
||||
if not exist "Development\Scripts\Windows\GetMSBuildPath.bat" goto Error_InvalidLocation
|
||||
|
||||
for %%I in (Source\Logo.png) do if %%~zI LSS 2000 (
|
||||
goto Error_MissingLFS
|
||||
)
|
||||
|
||||
rem Get the path to MSBuild executable.
|
||||
call "Development\Scripts\Windows\GetMSBuildPath.bat"
|
||||
if errorlevel 1 goto Error_NoVisualStudioEnvironment
|
||||
|
||||
rem If using VS2017, check that NuGet package manager is installed.
|
||||
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" goto NoVsWhere
|
||||
|
||||
set MSBUILD_15_EXE=
|
||||
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" goto Compile
|
||||
for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath') do (
|
||||
for %%j in (15.0, Current) do (
|
||||
if exist "%%i\MSBuild\%%j\Bin\MSBuild.exe" (
|
||||
set MSBUILD_15_EXE="%%i\MSBuild\%%j\Bin\MSBuild.exe"
|
||||
goto FoundMsBuild15
|
||||
set MSBUILD_PATH="%%i\MSBuild\%%j\Bin\MSBuild.exe"
|
||||
goto Compile
|
||||
)
|
||||
)
|
||||
)
|
||||
:FoundMsBuild15
|
||||
|
||||
set MSBUILD_15_EXE_WITH_NUGET=
|
||||
for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -latest -products * -requires Microsoft.Component.MSBuild -requires Microsoft.VisualStudio.Component.NuGet -property installationPath') do (
|
||||
if exist "%%i\MSBuild\15.0\Bin\MSBuild.exe" (
|
||||
set MSBUILD_15_EXE_WITH_NUGET="%%i\MSBuild\15.0\Bin\MSBuild.exe"
|
||||
goto FoundMsBuild15WithNuget
|
||||
)
|
||||
)
|
||||
:FoundMsBuild15WithNuget
|
||||
|
||||
if not [%MSBUILD_15_EXE%] == [] (
|
||||
set MSBUILD_EXE=%MSBUILD_15_EXE%
|
||||
goto NoVsWhere
|
||||
)
|
||||
|
||||
if not [%MSBUILD_EXE%] == [%MSBUILD_15_EXE_WITH_NUGET%] goto Error_RequireNugetPackageManager
|
||||
|
||||
:NoVsWhere
|
||||
|
||||
rem Check to see if the build tool source files have changed. Some can be included conditionally based on NDA access.
|
||||
:Compile
|
||||
md Cache\Intermediate >nul 2>nul
|
||||
dir /s /b Source\Tools\Flax.Build\*.cs >Cache\Intermediate\Flax.Build.Files.txt
|
||||
fc /b Cache\Intermediate\Build\Flax.Build.Files.txt Cache\Intermediate\Build\Flax.Build.PrevFiles.txt >nul 2>nul
|
||||
if not errorlevel 1 goto SkipClean
|
||||
copy /y Cache\Intermediate\Build\Flax.Build.Files.txt Cache\Intermediate\Build\Flax.Build.PrevFiles.txt >nul
|
||||
%MSBUILD_EXE% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Clean
|
||||
:SkipClean
|
||||
%MSBUILD_EXE% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Build
|
||||
if errorlevel 1 goto Error_CompileFailed
|
||||
|
||||
rem Run the build tool using the provided arguments.
|
||||
copy /y Cache\Intermediate\Build\Flax.Build.Files.txt Cache\Intermediate\Build\Flax.Build.PrevFiles.txt >nul
|
||||
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Clean
|
||||
:SkipClean
|
||||
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Build
|
||||
if errorlevel 1 goto Error_CompilationFailed
|
||||
|
||||
Binaries\Tools\Flax.Build.exe %*
|
||||
if errorlevel 1 goto Error_FlaxBuildFailed
|
||||
|
||||
rem Done.
|
||||
exit /B 0
|
||||
|
||||
:Error_BatchFileInWrongLocation
|
||||
echo.
|
||||
echo CallBuildTool ERROR: The batch file does not appear to be located in the root directory. This script must be run from within that directory.
|
||||
echo.
|
||||
:Error_MissingLFS
|
||||
echo CallBuildTool ERROR: Repository was not cloned using Git LFS
|
||||
goto Exit
|
||||
:Error_InvalidLocation
|
||||
echo CallBuildTool ERROR: The script is in invalid directory.
|
||||
goto Exit
|
||||
|
||||
:Error_NoVisualStudioEnvironment
|
||||
echo.
|
||||
echo CallBuildTool ERROR: We couldn't find a valid installation of Visual Studio. This program requires Visual Studio 2015. Please check that you have Visual Studio installed, then verify that the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\InstallDir (or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\InstallDir on 32-bit machines) registry value is set. Visual Studio configures this value when it is installed, and this program expects it to be set to the '\Common7\IDE\' sub-folder under a valid Visual Studio installation directory.
|
||||
echo.
|
||||
echo CallBuildTool ERROR: Missing Visual Studio 2015 or newer.
|
||||
goto Exit
|
||||
|
||||
:Error_RequireNugetPackageManager
|
||||
echo.
|
||||
echo CallBuildTool ERROR: NuGet Package Manager is requried to be installed to use %MSBUILD_EXE%. Please run the Visual Studio Installer and add it from the individual components list (in the 'Code Tools' category).
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Error_CompileFailed
|
||||
echo.
|
||||
:Error_CompilationFailed
|
||||
echo CallBuildTool ERROR: Failed to compile Flax.Build project.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Error_FlaxBuildFailed
|
||||
echo.
|
||||
echo CallBuildTool ERROR: Flax.Build tool failed.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Exit
|
||||
rem Exit with error.
|
||||
exit /B 1
|
||||
|
||||
@@ -2,72 +2,57 @@
|
||||
|
||||
rem Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
set MSBUILD_EXE=
|
||||
set MSBUILD_PATH=
|
||||
|
||||
rem Try to get the MSBuild 15 path using vswhere (see https://github.com/Microsoft/vswhere).
|
||||
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" goto no_vswhere
|
||||
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" goto VsWhereNotFound
|
||||
for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath') do (
|
||||
if exist "%%i\MSBuild\15.0\Bin\MSBuild.exe" (
|
||||
set MSBUILD_EXE="%%i\MSBuild\15.0\Bin\MSBuild.exe"
|
||||
goto Succeeded
|
||||
set MSBUILD_PATH="%%i\MSBuild\15.0\Bin\MSBuild.exe"
|
||||
goto End
|
||||
)
|
||||
)
|
||||
:no_vswhere
|
||||
:VsWhereNotFound
|
||||
|
||||
rem Check for MSBuild 15. This is installed alongside Visual Studio 2017, so we get the path relative to that.
|
||||
call :ReadInstallPath Microsoft\VisualStudio\SxS\VS7 15.0 MSBuild\15.0\bin\MSBuild.exe
|
||||
if not errorlevel 1 goto Succeeded
|
||||
|
||||
rem Try to get the MSBuild 14.0 path directly (see https://msdn.microsoft.com/en-us/library/hh162058(v=vs.120).aspx).
|
||||
if exist "%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" (
|
||||
set MSBUILD_EXE="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"
|
||||
goto Succeeded
|
||||
set MSBUILD_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"
|
||||
goto End
|
||||
)
|
||||
|
||||
rem Try to get the MSBuild 14.0 path from the registry.
|
||||
call :ReadInstallPath Microsoft\MSBuild\ToolsVersions\14.0 MSBuildToolsPath MSBuild.exe
|
||||
if not errorlevel 1 goto Succeeded
|
||||
call :GetInstallPath Microsoft\VisualStudio\SxS\VS7 15.0 MSBuild\15.0\bin\MSBuild.exe
|
||||
if not errorlevel 1 goto End
|
||||
call :GetInstallPath Microsoft\MSBuild\ToolsVersions\14.0 MSBuildToolsPath MSBuild.exe
|
||||
if not errorlevel 1 goto End
|
||||
call :GetInstallPath Microsoft\MSBuild\ToolsVersions\12.0 MSBuildToolsPath MSBuild.exe
|
||||
if not errorlevel 1 goto End
|
||||
call :GetInstallPath Microsoft\MSBuild\ToolsVersions\4.0 MSBuildToolsPath MSBuild.exe
|
||||
if not errorlevel 1 goto End
|
||||
|
||||
rem Check for older versions of MSBuild. These are registered as separate versions in the registry.
|
||||
call :ReadInstallPath Microsoft\MSBuild\ToolsVersions\12.0 MSBuildToolsPath MSBuild.exe
|
||||
if not errorlevel 1 goto Succeeded
|
||||
call :ReadInstallPath Microsoft\MSBuild\ToolsVersions\4.0 MSBuildToolsPath MSBuild.exe
|
||||
if not errorlevel 1 goto Succeeded
|
||||
|
||||
rem Searching failed.
|
||||
exit /B 1
|
||||
|
||||
rem Searching done!
|
||||
:Succeeded
|
||||
:End
|
||||
exit /B 0
|
||||
|
||||
rem Subroutine to query the registry under HKCU/HKLM Win32/Wow64 software registry keys for a certain install directory.
|
||||
rem Arguments:
|
||||
rem %1 = Registry path under the 'SOFTWARE' registry key
|
||||
rem %2 = Value name
|
||||
rem %3 = Relative path under this directory to look for an installed executable.
|
||||
:ReadInstallPath
|
||||
:GetInstallPath
|
||||
for /f "tokens=2,*" %%A in ('REG.exe query HKCU\SOFTWARE\%1 /v %2 2^>Nul') do (
|
||||
if exist "%%B%%3" (
|
||||
set MSBUILD_EXE="%%B%3"
|
||||
set MSBUILD_PATH="%%B%3"
|
||||
exit /B 0
|
||||
)
|
||||
)
|
||||
for /f "tokens=2,*" %%A in ('REG.exe query HKLM\SOFTWARE\%1 /v %2 2^>Nul') do (
|
||||
if exist "%%B%3" (
|
||||
set MSBUILD_EXE="%%B%3"
|
||||
set MSBUILD_PATH="%%B%3"
|
||||
exit /B 0
|
||||
)
|
||||
)
|
||||
for /f "tokens=2,*" %%A in ('REG.exe query HKCU\SOFTWARE\Wow6432Node\%1 /v %2 2^>Nul') do (
|
||||
if exist "%%B%%3" (
|
||||
set MSBUILD_EXE="%%B%3"
|
||||
set MSBUILD_PATH="%%B%3"
|
||||
exit /B 0
|
||||
)
|
||||
)
|
||||
for /f "tokens=2,*" %%A in ('REG.exe query HKLM\SOFTWARE\Wow6432Node\%1 /v %2 2^>Nul') do (
|
||||
if exist "%%B%3" (
|
||||
set MSBUILD_EXE="%%B%3"
|
||||
set MSBUILD_PATH="%%B%3"
|
||||
exit /B 0
|
||||
)
|
||||
)
|
||||
|
||||
+2
-2
@@ -3,10 +3,10 @@
|
||||
"Version": {
|
||||
"Major": 1,
|
||||
"Minor": 0,
|
||||
"Build": 6214
|
||||
"Build": 6216
|
||||
},
|
||||
"Company": "Flax",
|
||||
"Copyright": "Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.",
|
||||
"Copyright": "Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.",
|
||||
"GameTarget": "FlaxGame",
|
||||
"EditorTarget": "FlaxEditor"
|
||||
}
|
||||
@@ -6,34 +6,19 @@ setlocal
|
||||
pushd
|
||||
echo Generating Flax Engine project files...
|
||||
|
||||
rem Make sure the batch file exists in the root folder.
|
||||
if not exist "%~dp0\Source" goto Error_BatchFileInWrongLocation
|
||||
if not exist "Development\Scripts\Windows\CallBuildTool.bat" goto Error_BatchFileInWrongLocation
|
||||
|
||||
rem Run Flax.Build to generate Visual Studio solution and project files (also pass the arguments)
|
||||
call "Development\Scripts\Windows\CallBuildTool.bat" -genproject %*
|
||||
if errorlevel 1 goto Error_BuildToolFailed
|
||||
if errorlevel 1 goto BuildToolFailed
|
||||
|
||||
rem Done.
|
||||
popd
|
||||
echo Done!
|
||||
exit /B 0
|
||||
|
||||
:Error_BatchFileInWrongLocation
|
||||
echo.
|
||||
echo The batch file does not appear to be located in the root directory. This script must be run from within that directory.
|
||||
echo.
|
||||
pause
|
||||
goto Exit
|
||||
|
||||
:Error_BuildToolFailed
|
||||
echo.
|
||||
:BuildToolFailed
|
||||
echo Flax.Build tool failed.
|
||||
echo.
|
||||
pause
|
||||
goto Exit
|
||||
|
||||
:Exit
|
||||
rem Restore original directory before exit.
|
||||
popd
|
||||
exit /B 1
|
||||
|
||||
Regular → Executable
+2
-16
@@ -6,32 +6,18 @@ setlocal
|
||||
pushd
|
||||
echo Performing the full package...
|
||||
|
||||
rem Make sure the batch file exists in the root folder.
|
||||
if not exist "%~dp0\Source" goto Error_BatchFileInWrongLocation
|
||||
if not exist "Development\Scripts\Windows\CallBuildTool.bat" goto Error_BatchFileInWrongLocation
|
||||
|
||||
rem Run the build tool.
|
||||
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployEditor -deployPlatforms -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %*
|
||||
if errorlevel 1 goto Error_BuildToolFailed
|
||||
if errorlevel 1 goto BuildToolFailed
|
||||
|
||||
rem Done.
|
||||
popd
|
||||
echo Done!
|
||||
exit /B 0
|
||||
|
||||
:Error_BatchFileInWrongLocation
|
||||
echo.
|
||||
echo The batch file does not appear to be located in the root directory. This script must be run from within that directory.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Error_BuildToolFailed
|
||||
echo.
|
||||
:BuildToolFailed
|
||||
echo Flax.Build tool failed.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Exit
|
||||
rem Restore original directory before exit.
|
||||
popd
|
||||
exit /B 1
|
||||
|
||||
+3
-17
@@ -6,32 +6,18 @@ setlocal
|
||||
pushd
|
||||
echo Building and packaging Flax Editor...
|
||||
|
||||
rem Make sure the batch file exists in the root folder.
|
||||
if not exist "%~dp0\Source" goto Error_BatchFileInWrongLocation
|
||||
if not exist "Development\Scripts\Windows\CallBuildTool.bat" goto Error_BatchFileInWrongLocation
|
||||
|
||||
rem Run Flax.Build to generate Visual Studio solution and project files (also pass the arguments)
|
||||
rem Run the build tool.
|
||||
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployEditor -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %*
|
||||
if errorlevel 1 goto Error_BuildToolFailed
|
||||
if errorlevel 1 goto BuildToolFailed
|
||||
|
||||
rem Done.
|
||||
popd
|
||||
echo Done!
|
||||
exit /B 0
|
||||
|
||||
:Error_BatchFileInWrongLocation
|
||||
echo.
|
||||
echo The batch file does not appear to be located in the root directory. This script must be run from within that directory.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Error_BuildToolFailed
|
||||
echo.
|
||||
:BuildToolFailed
|
||||
echo Flax.Build tool failed.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Exit
|
||||
rem Restore original directory before exit.
|
||||
popd
|
||||
exit /B 1
|
||||
|
||||
+3
-17
@@ -6,32 +6,18 @@ setlocal
|
||||
pushd
|
||||
echo Building and packaging platforms data...
|
||||
|
||||
rem Make sure the batch file exists in the root folder.
|
||||
if not exist "%~dp0\Source" goto Error_BatchFileInWrongLocation
|
||||
if not exist "Development\Scripts\Windows\CallBuildTool.bat" goto Error_BatchFileInWrongLocation
|
||||
|
||||
rem Run Flax.Build to generate Visual Studio solution and project files (also pass the arguments)
|
||||
rem Run the build tool.
|
||||
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployPlatforms -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %*
|
||||
if errorlevel 1 goto Error_BuildToolFailed
|
||||
if errorlevel 1 goto BuildToolFailed
|
||||
|
||||
rem Done.
|
||||
popd
|
||||
echo Done!
|
||||
exit /B 0
|
||||
|
||||
:Error_BatchFileInWrongLocation
|
||||
echo.
|
||||
echo The batch file does not appear to be located in the root directory. This script must be run from within that directory.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Error_BuildToolFailed
|
||||
echo.
|
||||
:BuildToolFailed
|
||||
echo Flax.Build tool failed.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Exit
|
||||
rem Restore original directory before exit.
|
||||
popd
|
||||
exit /B 1
|
||||
|
||||
Regular → Executable
@@ -16,10 +16,6 @@ This repository contains full source code of the Flax (excluding NDA-protected p
|
||||
* [Forum](https://forum.flaxengine.com)
|
||||
* [Roadmap](https://trello.com/b/NQjLXRCP/flax-roadmap)
|
||||
|
||||
# Flax plugin for Visual Studio
|
||||
|
||||
Flax Visual Studio extension provides better programming workflow, C# scripts debugging functionality and allows to attach to running engine instance to debug C# source. This extension is available to download [here](https://marketplace.visualstudio.com/items?itemName=Flax.FlaxVS).
|
||||
|
||||
# Screenshots
|
||||
|
||||

|
||||
@@ -30,6 +26,10 @@ Flax Visual Studio extension provides better programming workflow, C# scripts de
|
||||
|
||||
Follow the instructions below to compile and run the engine from source.
|
||||
|
||||
## Flax plugin for Visual Studio
|
||||
|
||||
Flax Visual Studio extension provides better programming workflow, C# scripts debugging functionality and allows to attach to running engine instance to debug C# source. This extension is available to download [here](https://marketplace.visualstudio.com/items?itemName=Flax.FlaxVS).
|
||||
|
||||
## Windows
|
||||
|
||||
* Install Visual Studio 2015 or newer
|
||||
@@ -38,7 +38,8 @@ Follow the instructions below to compile and run the engine from source.
|
||||
* Clone repo (with LFS)
|
||||
* Run **GenerateProjectFiles.bat**
|
||||
* Open `Flax.sln` and set solution configuration to **Editor.Development** and solution platform to **Win64**
|
||||
* Compile Flax project (hit F7 key)
|
||||
* Set Flax or FlaxEngine as startup project
|
||||
* Compile Flax project (hit F7 or CTRL+Shift+B)
|
||||
* Run Flax (hit F5 key)
|
||||
|
||||
## Linux
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
rem Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
setlocal
|
||||
pushd
|
||||
pushd %~dp0
|
||||
echo Registering Flax Engine project files...
|
||||
|
||||
rem Check the current versions config
|
||||
@@ -14,13 +14,13 @@ if not exist "%appdata%\Flax\Versions.txt" (
|
||||
)
|
||||
set EngineLocation=%cd%
|
||||
find /c "%EngineLocation%" "%appdata%\Flax\Versions.txt"
|
||||
if %errorlevel% equ 1 goto notfound
|
||||
if %errorlevel% equ 1 goto NotFound
|
||||
echo Already registered.
|
||||
goto Done
|
||||
|
||||
rem Register the location (append to the end)
|
||||
:notfound
|
||||
echo Location '%EngineLocation%' is not registered. Adding it to the lsit of engine versions.
|
||||
:NotFound
|
||||
echo Location '%EngineLocation%' is not registered. Adding it to the list of engine versions.
|
||||
echo %EngineLocation%>>"%appdata%\Flax\Versions.txt"
|
||||
goto Done
|
||||
|
||||
@@ -31,6 +31,5 @@ echo Done!
|
||||
exit /B 0
|
||||
|
||||
:Exit
|
||||
rem Restore original directory before exit.
|
||||
popd
|
||||
exit /B 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
#include "EditorAnalytics.h"
|
||||
#include "EditorAnalyticsController.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
#include "EditorAnalyticsController.h"
|
||||
#include "Editor/Cooker/GameCooker.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
namespace FlaxEditor.Content.Create
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using FlaxEditor.Content.Settings;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using FlaxEngine;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEditor.GUI;
|
||||
using FlaxEditor.GUI.Drag;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEditor.GUI.Drag;
|
||||
using FlaxEditor.SceneGraph;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
namespace FlaxEditor.Content
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
namespace FlaxEditor.Content.Import
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.IO;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
@@ -262,9 +262,9 @@ namespace FlaxEditor.Content.Import
|
||||
public int BaseLOD { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// The amount of LODs to include in the model (all reaming ones starting from Base LOD will be generated).
|
||||
/// The amount of LODs to include in the model (all remaining ones starting from Base LOD will be generated).
|
||||
/// </summary>
|
||||
[EditorOrder(1120), DefaultValue(4), Limit(1, Model.MaxLODs), EditorDisplay("Level Of Detail", "LOD Count"), Tooltip("The amount of LODs to include in the model (all reaming ones starting from Base LOD will be generated).")]
|
||||
[EditorOrder(1120), DefaultValue(4), Limit(1, Model.MaxLODs), EditorDisplay("Level Of Detail", "LOD Count"), Tooltip("The amount of LODs to include in the model (all remaining ones starting from Base LOD will be generated).")]
|
||||
public int LODCount { get; set; } = 4;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -58,7 +58,7 @@ namespace FlaxEditor.Content
|
||||
|
||||
public override bool OnMouseDoubleClick(Vector2 location, MouseButton button)
|
||||
{
|
||||
return Item.OnMouseDoubleClick(Item.ScreenToClient(ClientToScreen(location)), button);
|
||||
return Item.OnMouseDoubleClick(Item.PointFromScreen(PointToScreen(location)), button);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using FlaxEngine;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using FlaxEngine;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using FlaxEngine;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.Text;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user