Skip to content

Instantly share code, notes, and snippets.

shader Training1 : ComputeColor, Texturing
{
override float4 Compute()
{
//float r,g,b;
float r = 0.2f;
float g = 0.2f;
float b = 0.57f;
float time = (Global.Time) * 4.0f;
@Eideren
Eideren / YourGameDefinition.cs
Last active September 28, 2025 07:37
How to setup async shader compilation in stride, note that the game will still freeze initially to compile the fallback
public class YourGameDefinition : Stride.Engine.Game
{
protected override void BeginRun()
{
base.BeginRun();
foreach( var feature in SceneSystem.GraphicsCompositor.RenderFeatures )
{
if( feature is MeshRenderFeature meshRf )
{
meshRf.ComputeFallbackEffect += FallbackForAsyncCompilation;
@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.

@windsting
windsting / starting-postgresql-in-windows-without-install.md
Created September 20, 2018 10:50
Starting Postgresql in Windows without Install

Starting Postgresql in Windows without Install

Problem

This is a question that comes up quite often by windows users, so thought we would share how we normally do it. The question is

Can you run a PostgreSQL server on your windows desktop/server box without having to install anything?

The answer is

@dfkeenan
dfkeenan / NextSceneScript.cs
Created January 12, 2017 11:42
Xenko: Transitions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using PhysicsSample.Transitions.Rendering.Images;
using SiliconStudio.Core.Extensions;
using SiliconStudio.Core.Mathematics;
using SiliconStudio.Xenko.Engine;
using SiliconStudio.Xenko.Graphics;
using SiliconStudio.Xenko.Input;