Skip to content

Instantly share code, notes, and snippets.

View tebjan's full-sized avatar
🌻
Focusing

Tebjan Halm tebjan

🌻
Focusing
View GitHub Profile
@antonkudin
antonkudin / spherefog.shader
Last active February 8, 2025 10:19
Spherical fog unity shader
// original from https://forum.unity3d.com/threads/share-volume-fog-shader.147323/
Shader "Effect/SphereFog" {
Properties {
_FogColor ("Fog Color", Color) = (1,1,1,1)
[space]
_Density ("Density", Float) = 1
_Power ("Power/gamma", Float) = 4
_Offset ("Offset", Range(-.1,.1)) = -0.003
[space]
_NearbyOffset ("Nearby Offset", Float) = -1
@EricEzaM
EricEzaM / StrideView.xaml
Created July 19, 2022 09:41
Stride3D embed in WPF xaml control
<UserControl x:Class="Namespace.StrideView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Namespace"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<ContentPresenter x:Name="SceneView">
@Eideren
Eideren / StrideExporter.cs
Last active October 16, 2024 16:09
A small class to export/save a scene or a group of entities within a running stride game
namespace Project
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using Stride.Core;
using Stride.Core.Annotations;
using Stride.Core.Mathematics;
using Stride.Core.Yaml;
@westonsoftware
westonsoftware / StartScript.cs
Last active January 27, 2025 22:58
Stride 3D rendered into Avalonia
using System;
using Stride.Core.Mathematics;
using Stride.Engine;
using Stride.Rendering;
using Stride.Graphics;
using System.IO;
namespace InfinityGame
{
public class StartScript : SyncScript
@aikixd
aikixd / example.md
Created December 19, 2019 11:37
Xenko recepie example

Loading additional asset databases

Xenko accesses physical files through virtual file system abstraction. So in order to access the asset database, you first need to mount the physical directory into the virtual file system.

Once that is done you can instanciate a new content manager by providing it a virtual path to the asset database.