usermattcancel
reposboxcancel

1,345 Commits over 974 Days - 0.06cph!

6 Months Ago
MapNode.OnAddedToDocument & MapNode.OnRemovedFromDocument Run Scene.EditorTick() from Hammer Get some scene prefabs going in Hammer
6 Months Ago
oops fucked the name
6 Months Ago
Fix preferences menu
6 Months Ago
Hammer map worlds get a backing Scene, add that Scene's SceneWorlds to the render list Add ComponentEditorWidget which can be decorated with CustomEditorAttribute Example usage: ```cs [CustomEditor( typeof( Terrain ))] public class TerrainEditor : ComponentEditorWidget { // ... } ```
6 Months Ago
Delete unused enums and networkclient defs
6 Months Ago
Pass engine version to discover api
6 Months Ago
Update default editor layout
6 Months Ago
Get rid of Sandbox.Server and Sandbox.Client
6 Months Ago
Rename Entity to HammerEntityDefinition, make it internal, delete some other things and mark lots of attributes as internal
6 Months Ago
Give test-managed a 10 min timeout
6 Months Ago
This test relied on Entity properties
6 Months Ago
Delete tons more Entity & Networking code
6 Months Ago
Strip C# Entity IO Delete big chunks of entity networking, and stub a bunch of entities Delete entities that will be prefabs Delete base/Obsolete Delete Net codegen
7 Months Ago
Izabu fix
7 Months Ago
Delete test-server from CI since it's just testing legacy game loop
7 Months Ago
Heightfield shape collision (collide directly with heightmap values to save memory and construction time) https://files.facepunch.com/layla/1b2711b1/sbox-dev_te9aXdBHk6.mp4 Bit of cleanup simd cell triangle vertices up front Ray casts and shape casts against heightfield but slow because there's no acceleration structure yet Shape cast against heightfield using swept bounds, awful for long traces but fine for player controller for now Pin heightfield memory to the PhysicsShape so GC can't free it whilst native is using it
7 Months Ago
depthresolve uses min of all msaa samples
7 Months Ago
Pass engine version how web expects it when searching for packages
7 Months Ago
Up Engine API version
7 Months Ago
Remove r_depth_prepass option, we should always be doing it as part of forward+ Depth class uses the pre-resolved depth chain from the prepass instead of trying to sample an MSAA buffer, which was never working on certain MSAA levels and would've required a combo and loads of extra bullshit to do.
7 Months Ago
Add r_depth_debug to visualize the depth buffer
7 Months Ago
Make `ListView.ItemAlign = Align.SpaceBetween` work better, especially when there's not enough items to fill a row
7 Months Ago
ReflectionSerializedObject properties set their PropertyType
7 Months Ago
Wireframe and ToolsVisMode can be driven per-view by Camera attributes instead of global convars
7 Months Ago
vk: "fix" semaphore hang when recreating swapchains vk: always use D32FS8 for depth buffer
7 Months Ago
ui: flex gap scales
7 Months Ago
Material::Init initializes TextureCoords too
7 Months Ago
Update new shader template
7 Months Ago
Remove stereo multiview instancing from debug menu Add Texture.Update<T>( ReadOnlySpan<T> data ) & Texture2DBuilder.WithData<T>( ReadOnlySpan<T> data )
7 Months Ago
Stop using PixelInput for everything (#1336) * PS_InitFinalCombiner( PS_INPUT ) -> PS_InitFinalCombiner() so it works without COMMON_PS_INPUT_DEFINED - this is just for default values anyway PS_CommonTransformNormal should be wrapped in COMMON_PS_INPUT_DEFINED too * Material shading API can be used without common PixelInput Internals rewritten to remove reliance on a commonly defined PixelInput instead every function just takes what it needs. The only public methods you may have been using were changed like so: ```diff - float3 TransformNormal( const PixelInput i, float3 vNormalTs ) + float3 TransformNormal( float3 vNormalTs, float3 vGeometricNormalWs, float3 vTangentUWs, float3 vTangentVWs ) - float3 NormalWorldToTangent( PS_INPUT i, float3 vNormalWs ) + float3 NormalWorldToTangent( float3 vNormalWs, float3 vGeometricNormalWs, float3 vTangentUWs, float3 vTangentVWs ) ``` Material::From( PixelInput ... ), ShadingModelStandard::Shade( PixelInput ... ) stil exist but are wrapped in ifdef COMMON_PS_INPUT_DEFINED, so only work with the common PixelInput include. Material::Init() added to initialize a Material with default values Geometric normals are now distinctive from normals in Material too, this is important for the lighting model: https://files.facepunch.com/matt/1b1711b1/beforeafter.png And a lot of tool vis modes were fixed too. * Material.AmbientOcclusion float3 -> float
7 Months Ago
PS_InitFinalCombiner( PS_INPUT ) -> PS_InitFinalCombiner() so it works without COMMON_PS_INPUT_DEFINED - this is just for default values anyway PS_CommonTransformNormal should be wrapped in COMMON_PS_INPUT_DEFINED too Material shading API can be used without common PixelInput Internals rewritten to remove reliance on a commonly defined PixelInput instead every function just takes what it needs. The only public methods you may have been using were changed like so: ```diff - float3 TransformNormal( const PixelInput i, float3 vNormalTs ) + float3 TransformNormal( float3 vNormalTs, float3 vGeometricNormalWs, float3 vTangentUWs, float3 vTangentVWs ) - float3 NormalWorldToTangent( PS_INPUT i, float3 vNormalWs ) + float3 NormalWorldToTangent( float3 vNormalWs, float3 vGeometricNormalWs, float3 vTangentUWs, float3 vTangentVWs ) ``` Material::From( PixelInput ... ), ShadingModelStandard::Shade( PixelInput ... ) stil exist but are wrapped in ifdef COMMON_PS_INPUT_DEFINED, so only work with the common PixelInput include. Material::Init() added to initialize a Material with default values Geometric normals are now distinctive from normals in Material too, this is important for the lighting model: https://files.facepunch.com/matt/1b1711b1/beforeafter.png And a lot of tool vis modes were fixed too. Material.AmbientOcclusion float3 -> float ShaderGraph fixes Fix
7 Months Ago
ShaderGraph fixes
7 Months Ago
Material.AmbientOcclusion float3 -> float
7 Months Ago
PS_InitFinalCombiner( PS_INPUT ) -> PS_InitFinalCombiner() so it works without COMMON_PS_INPUT_DEFINED - this is just for default values anyway PS_CommonTransformNormal should be wrapped in COMMON_PS_INPUT_DEFINED too Material shading API can be used without common PixelInput Internals rewritten to remove reliance on a commonly defined PixelInput instead every function just takes what it needs. The only public methods you may have been using were changed like so: ```diff - float3 TransformNormal( const PixelInput i, float3 vNormalTs ) + float3 TransformNormal( float3 vNormalTs, float3 vGeometricNormalWs, float3 vTangentUWs, float3 vTangentVWs ) - float3 NormalWorldToTangent( PS_INPUT i, float3 vNormalWs ) + float3 NormalWorldToTangent( float3 vNormalWs, float3 vGeometricNormalWs, float3 vTangentUWs, float3 vTangentVWs ) ``` Material::From( PixelInput ... ), ShadingModelStandard::Shade( PixelInput ... ) stil exist but are wrapped in ifdef COMMON_PS_INPUT_DEFINED, so only work with the common PixelInput include. Material::Init() added to initialize a Material with default values Geometric normals are now distinctive from normals in Material too, this is important for the lighting model: https://files.facepunch.com/matt/1b1711b1/beforeafter.png And a lot of tool vis modes were fixed too.
7 Months Ago
Light fixes Can use Material and shading without PixelInput
7 Months Ago
Lights don't accept PixelInput - explicitly pass positions / lightmap uvs These should be g_vHighPrecisionLightingOffsetWs instead of g_vCameraPositionWs float4 DoAtmospherics( PixelInput i, float4 vColor, bool bAdditiveBlending = false ) -> float4 DoAtmospherics( float3 vInputColor, float3 vPositionWs, float2 vPositionSs, bool bAdditiveBlending = false ) ShadingModel is never going to be an interface like this TransformNormal, NormalWorldToTangent accept explicit parameters instead of PixelInput PS_InitFinalCombiner( PS_INPUT ) -> PS_InitFinalCombiner() so it works without COMMON_PS_INPUT_DEFINED - this is just for default values anyway Delete DryEraseMarker from common ps code PS_CommonTransformNormal should be wrapped in COMMON_PS_INPUT_DEFINED too Wrap Material funcs that interact with assumed common PixelInput with COMMON_PS_INPUT_DEFINED
7 Months Ago
Lights don't accept PixelInput - explicitly pass positions / lightmap uvs
7 Months Ago
Strip multiview instancing / instancing scalars from engine Remove D_MULTIVIEW_INSTANCING and multiview methods from shaders Remove X360 macros INSTANCING_PARAMS & INSTANCED_SHADER_PARAMS Update system.fxc
7 Months Ago
Strip multiview instancing / instancing scalars from engine Remove D_MULTIVIEW_INSTANCING and multiview methods from shaders Remove X360 macros INSTANCING_PARAMS & INSTANCED_SHADER_PARAMS Update system.fxc
7 Months Ago
Refactor some Graphics files, remove long obsolete methods
7 Months Ago
Add PhysicsWorld debug drawing methods for scenestaging
7 Months Ago
Fix shadergraph error when compiling
7 Months Ago
ResourceControlWidget: Add Open In Editor to context menu Gizmo.SceneSettings.CameraZFar default from 10,000 -> 100,000
8 Months Ago
Get rid of D_MULTIVIEW_INSTANCING combo Revert "Latest compiled shaders" - sunlight shadows are fucked, and are fucked in any new shaders compiled. Not worth me debugging since the new lightbinner doesn't use them and is right around the corner
8 Months Ago
Latest compiled shaders
8 Months Ago
Remove debug flex log
8 Months Ago
Don't destroy PVS if it's also used in another SceneWorld
8 Months Ago
Nah that wasn't it + it already does this further down
8 Months Ago
Fix crash when clearing SceneMap worlds, we were setting PVS to nullptr instead of the default pvs
8 Months Ago
Add SceneParticles.SetNamedValue( string name, Vector3 value )