Skip to content

Instantly share code, notes, and snippets.

Avatar

Benjamin Berman doctorpangloss

View GitHub Profile
@doctorpangloss
doctorpangloss / hdrp.patch
Created Jul 16, 2022
patch for hdrp reflection probe culling issue
View hdrp.patch
diff --git a/Packages/com.unity.render-pipelines.high-definition@12.1.7/Runtime/RenderPipeline/HDRenderPipeline.cs b/Packages/com.unity.render-pipelines.high-definition@12.1.7/Runtime/RenderPipeline/HDRenderPipeline.cs
index 34918678..6997fe2e 100644
--- a/Packages/com.unity.render-pipelines.high-definition@12.1.7/Runtime/RenderPipeline/HDRenderPipeline.cs
+++ b/Packages/com.unity.render-pipelines.high-definition@12.1.7/Runtime/RenderPipeline/HDRenderPipeline.cs
@@ -1334,6 +1334,14 @@ namespace UnityEngine.Rendering.HighDefinition
hdCamera.RequestDynamicResolution(cameraRequestedDynamicRes, dynResHandler);
+ // Force add all the HDProbes
+ var allProbes = GameObject.FindObjectsOfType<HDProbe>();
+ cullingResults.hdProbeCullingResults.Reset();
+ foreach (var probe in allProbes)
@doctorpangloss
doctorpangloss / GrpcExtensions.cs
Created Oct 7, 2021
Improving semantics around gRPC on Unity
View GrpcExtensions.cs
using System;
using System.Collections.Generic;
using Grpc.Core;
using UniRx;
using UniRx.Diagnostics;
using UnityEngine;
using System;
using System.Collections.Concurrent;
using System.Threading;
using Cysharp.Threading.Tasks;
View .editorconfig
[*]
trim_trailing_whitespace=false
charset=utf-8
end_of_line=lf
insert_final_newline=false
indent_style=space
indent_size=4
# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers=false
View dockerd.json
{
"data-root" : "/var/packages/Docker/target/docker",
"log-driver" : "json-file",
"registry-mirrors" : [],
"group": "administrators"
}
View ObservableUWP.cs
#if !UniRxLibrary
using ObservableUnity = UniRx.Observable;
#endif
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
using Hash = System.Collections.Generic.Dictionary<string, string>;
View Loca.java
package com.hiddenswitch.spellsource.applications;
import com.hiddenswitch.spellsource.Broadcaster;
import com.hiddenswitch.spellsource.Gateway;
import com.hiddenswitch.spellsource.Spellsource;
import com.hiddenswitch.spellsource.Tracing;
import com.hiddenswitch.spellsource.util.Logging;
import com.hiddenswitch.spellsource.util.Mongo;
import com.hiddenswitch.spellsource.util.RpcClient;
import io.vertx.core.Vertx;
View boostrap.sh
#!/usr/bin/env bash
brew install python3
pip3 install virtualenv
cd ~/Documents
virtualenv --python=python3 Environment
source Environment/bin/activate
pip3 install jupyter
jupyter notebook
@doctorpangloss
doctorpangloss / repetition_algorithm.ipynb
Last active Mar 1, 2022
Supermemo 2 Algorithm, Unobscured (Python 3)
View repetition_algorithm.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View RepititionAlgorithm.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace ProjectHolste
{
public class RepetitionAlgorithm<T> : IEnumerator<T>
{
@doctorpangloss
doctorpangloss / Embedded.java
Created May 2, 2018
Create a behaviour by example
View Embedded.java
package com.hiddenswitch.spellsource.applications;
import com.hiddenswitch.spellsource.Bots;
import com.hiddenswitch.spellsource.Broadcaster;
import com.hiddenswitch.spellsource.Spellsource;
import com.hiddenswitch.spellsource.util.Logging;
import io.vertx.core.Vertx;
import org.apache.commons.lang3.exception.ExceptionUtils;
import static com.hiddenswitch.spellsource.util.Mongo.mongo;